Body
Required
-
Delivery
Values are
email
,s3
, ors3_external
. Default value iss3
. -
Emails
-
Enabled
Default value is
true
. -
Inventory type
Values are
all
,inventory_feeds
, orinhouse
. Default value isall
. -
Last exported at
-
Name
-
Overwrite
Default value is
true
. -
S3 bucket
-
S3 key
-
S3 path
-
S3 secret
-
Scheduled type
Values are
shared
ordedicated
. Default value isshared
. -
Sending schedule
Values are
daily
,hourly
, ormanual
. Default value ismanual
.
POST
/inventory-exports.json
curl \
--request POST 'http://api.example.com/v1/inventory-exports.json' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"delivery":"s3","emails":["string"],"enabled":true,"inventoryType":"all","lastExportedAt":"2025-05-04T09:42:00Z","name":"string","overwrite":true,"s3Bucket":"string","s3Key":"string","s3Path":"string","s3Secret":"string","scheduledType":"shared","sendingSchedule":"manual"}'
Request examples
{
"delivery": "s3",
"emails": [
"string"
],
"enabled": true,
"inventoryType": "all",
"lastExportedAt": "2025-05-04T09:42:00Z",
"name": "string",
"overwrite": true,
"s3Bucket": "string",
"s3Key": "string",
"s3Path": "string",
"s3Secret": "string",
"scheduledType": "shared",
"sendingSchedule": "manual"
}
Response examples (200)
{
"createdAt": "2025-05-04T09:42:00Z",
"delivery": "s3",
"emails": [
"string"
],
"enabled": true,
"id": 42,
"inventoryType": "all",
"lastExportedAt": "2025-05-04T09:42:00Z",
"name": "string",
"overwrite": true,
"s3Bucket": "string",
"s3Key": "string",
"s3Path": "string",
"s3Secret": "string",
"scheduledType": "shared",
"sendingSchedule": "manual",
"updatedAt": "2025-05-04T09:42:00Z"
}