The Flexible Order Workflow is a new beta Order solution, which provides enhanced control over your order processing by allowing you to define how orders are managed, fulfilled, and updated. This event-driven system adapts to your existing processes, giving you the flexibility to automate workflows according to your specific requirements.
FeedAMP Flexible Workflow is an event-driven order processing system. Orders are imported from marketplaces on a configurable schedule, generating a new-order event. After this, your workflow configuration determines all the actions that are taken on that order.
FeedAMP Flexible Workflow currently uses the same authentication endpoints and headers as the FeedAMP v1 API.
last_fetched_orders
to find the most recent orders that need to be fulfilled.
last_fetched_orders
with current timestamp
last_fetched_orders
to find the most recent orders that need to be fulfilled.
last_fetched_orders
with current timestamp
AWAITING_SHIPMENT
.
{
"fulfillment_type": "shipment",
"fulfillment_lines": [
{
"line_id": "1",
"quantity": 1
},
{
"line_id":"2",
"quantity": 2
}
],
"shipment": {
"shipped_date": "2020-01-01T12:34:56-05:00",
"carrier": "UPS",
"tracking_number": "1Z123XYZ"
}
}
{
"cancellation_lines": [
{
"line_id": "3",
"quantity": 3
},
{
"line_id": "4",
"quantity": 4
}
],
"reason": "out_of_stock"
}
It is expected that Rest API integrations are able to tolerate additive (i.e. non-breaking) updates without requiring advance notice.
Use your username/password and HTTP Basic Authentication to get an authentication token Use the token along with your client id in all subsequent requests. When the token expires make another request to this route and get a new token.
{- "token": "53bf15c-this-is-an-example-token-b7769e17d-example-3f82af26f-example-12588b14d-example-15426324a-example-a5b2f721c-example-26fc7"
}
Get all orders that match the parameters that you have submitted. The maximum recommended call frequency for retrieving data from this endpoint is 2 requests per second.
marketplace_state | string The state of the order. Multiple states can be matched by specifying a comma-separated list of values. |
normalized_marketplace_state | string Enum: "PENDING" "AWAITING_ACKNOWLEDGEMENT" "AWAITING_SHIPMENT" "SHIPPED" "CANCELLED" FeedAMP's understanding of the state of the order in the marketplace. Multiple states can be matched by specifying a comma-separated list of values. |
marketplace_state_changed_after | string <date-time> (DateTime) Example: marketplace_state_changed_after=2024-03-13T08:50:59-08:00 Marketplace state was last changed after this datetime. RFC-3339 date-time format — fractional seconds not allowed |
marketplace_state_changed_before | string <date-time> (DateTime) Example: marketplace_state_changed_before=2024-03-13T08:50:59-08:00 Marketplace state was last changed before this datetime. RFC-3339 date-time format — fractional seconds not allowed |
imported_after | string <date-time> (DateTime) Example: imported_after=2024-03-13T08:50:59-08:00 Orders created in FeedAMP after this datetime. RFC-3339 date-time format — fractional seconds not allowed |
imported_before | string <date-time> (DateTime) Example: imported_before=2024-03-13T08:50:59-08:00 Orders created in FeedAMP before this datetime. RFC-3339 date-time format — fractional seconds not allowed |
id | string FeedAMP order ID. May be a comma-delimited list of multiple IDs. |
marketplace_order_number | string The primary order number provided by the marketplace. May be a comma-delimited list of multiple |
customer_order_number | string The customer-facing order number provided by the marketplace. May be a comma-delimited list of multiple |
integration_id | string (IdField) Example: integration_id=109872189273617283 FeedAMP integration ID to limit results to a single integration |
source_location_id | string Source platform identifier for a location to limit order results to |
client_location_id | string Client-provided identifier for a location to limit order results to. This will take precedence over source_location_id if both are present in the request. |
feedamp_status | string Example: feedamp_status=FULFILLMENT_REPORTED The feedamp order status |
limit | integer [ 1 .. 250 ] Default: 100 The max number of orders in the response. |
cursor | string Cursor for the next page of orders. |
include_raw_data | boolean Default: false Set true to include the raw data from the marketplace for each order in results. |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "orders": [
- {
- "id": "109872189273617283",
- "marketplace_order_number": "111-99998888-55555",
- "customer_order_number": "000-1234567-7654321",
- "marketplace_name": "Target",
- "integration_name": "My Store",
- "sales_channel": "Marketplace.co.uk",
- "location": {
- "source_location_id": "a0b0c0-f-f-f-f00f",
- "client_location_id": "my-locid_00",
- "name": "City Store - Citiesville",
- "address": "1234 Street Ave., City Township, NJ 00000-0000"
}, - "customer": {
- "full_name": "A. Customer",
- "email": "customer@internet-provider.com",
- "phone": "5558675309",
- "vat": "78131452263"
}, - "imported_date": "2020-12-31T12:34:56-05:00",
- "purchase_date": "2020-12-31T12:34:56-05:00",
- "currency": "USD",
- "delivery_notes": "leave by the back door.",
- "earliest_ship_date": "2020-12-31T12:34:56-05:00",
- "latest_ship_date": "2020-12-31T12:34:56-05:00",
- "latest_delivery_date": "2020-12-31T12:34:56-05:00",
- "earliest_delivery_date": "2020-12-31T12:34:56-05:00",
- "gift_message": "Happy birthday!",
- "marketing_opt_in": false,
- "shipping_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "billing_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "order_lines": [
- {
- "id": "109872189273617283",
- "marketplace_line_number": "XX-111-FF-1111",
- "sku": "1234-12353",
- "product_name": "ACME Super Product",
- "quantity": 1,
- "unit_price": 200,
- "shipping_method": "Standard",
- "shipping_price": 1.95,
- "taxes": [
- {
- "type": "SHIPPING",
- "amount": 0
}
], - "discounts": [
- {
- "name": "Spring Discount",
- "amount": 0,
- "type": "ITEM"
}
], - "is_tax_collected_by_marketplace": false,
- "order_line_additional_properties": { }
}
], - "order_additional_properties": { },
- "workflow_status": "FULFILLMENT REPORTED",
- "marketplace_state": "Shipped",
- "normalized_marketplace_state": "PENDING",
- "is_marketplace_fulfilled": false,
- "marketplace_state_changed_at": "2020-12-31T12:34:56-05:00",
- "fulfillment_type": "shipment"
}
], - "next_cursor": "string"
}
A single order model
order-id required | integer <int64> The id of the order |
include_raw_data | boolean Default: false Set true to include the raw data from the marketplace for each order in results. |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "id": "109872189273617283",
- "marketplace_order_number": "111-99998888-55555",
- "customer_order_number": "000-1234567-7654321",
- "marketplace_name": "Target",
- "integration_name": "My Store",
- "sales_channel": "Marketplace.co.uk",
- "location": {
- "source_location_id": "a0b0c0-f-f-f-f00f",
- "client_location_id": "my-locid_00",
- "name": "City Store - Citiesville",
- "address": "1234 Street Ave., City Township, NJ 00000-0000"
}, - "customer": {
- "full_name": "A. Customer",
- "email": "customer@internet-provider.com",
- "phone": "5558675309",
- "vat": "78131452263"
}, - "imported_date": "2020-12-31T12:34:56-05:00",
- "purchase_date": "2020-12-31T12:34:56-05:00",
- "currency": "USD",
- "delivery_notes": "leave by the back door.",
- "earliest_ship_date": "2020-12-31T12:34:56-05:00",
- "latest_ship_date": "2020-12-31T12:34:56-05:00",
- "latest_delivery_date": "2020-12-31T12:34:56-05:00",
- "earliest_delivery_date": "2020-12-31T12:34:56-05:00",
- "gift_message": "Happy birthday!",
- "marketing_opt_in": false,
- "shipping_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "billing_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "order_lines": [
- {
- "id": "109872189273617283",
- "marketplace_line_number": "XX-111-FF-1111",
- "sku": "1234-12353",
- "product_name": "ACME Super Product",
- "quantity": 1,
- "unit_price": 200,
- "shipping_method": "Standard",
- "shipping_price": 1.95,
- "taxes": [
- {
- "type": "SHIPPING",
- "amount": 0
}
], - "discounts": [
- {
- "name": "Spring Discount",
- "amount": 0,
- "type": "ITEM"
}
], - "is_tax_collected_by_marketplace": false,
- "order_line_additional_properties": { }
}
], - "order_additional_properties": { },
- "workflow_status": "FULFILLMENT REPORTED",
- "marketplace_state": "Shipped",
- "normalized_marketplace_state": "PENDING",
- "is_marketplace_fulfilled": false,
- "marketplace_state_changed_at": "2020-12-31T12:34:56-05:00",
- "fulfillment_type": "shipment"
}
Run the operation specified in the request on an order. The contents of the request and response will vary depending on the operation.
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
op required | string Example: op=acknowledge Name of the operation to run |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
The contents of the request and response will vary depending on the operation.
Confirm to the marketplace that merchant has received the order. The operation has no request body
null
{- "operation": "string",
- "response": { }
}
Post a shipment for a specific set of items
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
fulfillment_type required | string Value: "shipment" | ||||||||
required | object | ||||||||
| |||||||||
state | string Value: "shipped" | ||||||||
required | Array of objects (LineQuantity) Specification of order lines and quantities contained in the shipment | ||||||||
Array
|
{- "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
]
}
{- "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped",
- "id": "109872189273617283",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
]
}
Get all fulfillment information for the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
tracking_number | string Fulfillments matching the given tracking number |
carrier | string (Carrier) Example: carrier= '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other' Fulfillments matching the given carrier |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "fulfillments": [
- {
- "id": "109872189273617283",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped"
}
]
}
Get the information for the specified fulfillment in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
fulfillment-id required | string (IdField) Example: 109872189273617283 FeedAMP Fulfillment ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped",
- "id": "109872189273617283",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
]
}
Update the details of the specified fulfillment in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
fulfillment-id required | string (IdField) Example: 109872189273617283 FeedAMP Fulfillment ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
fulfillment_type required | string Value: "shipment" | ||||||||
required | object | ||||||||
| |||||||||
state | string Value: "shipped" | ||||||||
required | Array of objects (LineQuantity) Specification of order lines and quantities contained in the shipment | ||||||||
Array
|
{- "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
]
}
{- "fulfillment_type": "shipment",
- "shipment": {
- "shipped_date": "2020-12-31T12:34:56-05:00",
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string",
- "tracking_url": "string"
}, - "state": "shipped",
- "id": "109872189273617283",
- "fulfillment_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
]
}
Delete the specified fulfillment in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
fulfillment-id required | string (IdField) Example: 109872189273617283 FeedAMP Fulfillment ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
Token header is missing
{- "error": "Missing token."
}
Post a cancellation of line item
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
required | Array of objects (LineQuantity) | ||||
Array
| |||||
reason required | string (CancellationReason) Enum: "customer_cancelled" "customer_rejected" "unable_to_ship" "out_of_stock" "price_error" "tax_error" "shipping_price_error" "fraud" "other" Reason provided for the order line's cancellation |
{- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
{- "id": "109872189273617283",
- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
Get all the cancellations for the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "cancellations": [
- {
- "id": "109872189273617283",
- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
]
}
Get the information for the specified cancellation in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
cancellation-id required | string (IdField) Example: 109872189273617283 FeedAMP Cancellation ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "id": "109872189273617283",
- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
Update the information for a specified cancellation in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
cancellation-id required | string (IdField) Example: 109872189273617283 FeedAMP Cancellation ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
required | Array of objects (LineQuantity) | ||||
Array
| |||||
reason required | string (CancellationReason) Enum: "customer_cancelled" "customer_rejected" "unable_to_ship" "out_of_stock" "price_error" "tax_error" "shipping_price_error" "fraud" "other" Reason provided for the order line's cancellation |
{- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
{- "id": "109872189273617283",
- "cancellation_lines": [
- {
- "line_id": "109872189273617283",
- "quantity": 1
}
], - "reason": "customer_cancelled"
}
Delete the specified cancellation in the specified order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
cancellation-id required | string (IdField) Example: 109872189273617283 FeedAMP Cancellation ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
Token header is missing
{- "error": "Missing token."
}
Post a refund to a line item
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
cp_refund_number required | string Seller Refund ID. Must be unique for all posted refunds. | ||||||||||||||||||||||||
required | Array of objects (RefundLine) | ||||||||||||||||||||||||
Array
| |||||||||||||||||||||||||
property name* additional property | any |
{- "cp_refund_number": "REFUND-1234",
- "refund_lines": [
- {
- "feedamp_order_line_id": "109872189273617283",
- "refund_reason": "customer_cancelled",
- "refund_line_number": "XX-111-FF-1111",
- "refund_quantity": 1,
- "currency": "USD",
- "item_refund": 1.99,
- "item_tax_refund": 0.19,
- "shipping_refund": 2,
- "shipping_tax_refund": 0.2,
- "discount_refund": 1,
- "refund_notes": "Courtesy refund - thank you for your business"
}
]
}
{- "id": "109872189273617283",
- "cp_refund_number": "REFUND-1234",
- "refund_lines": [
- {
- "feedamp_order_line_id": "109872189273617283",
- "refund_reason": "customer_cancelled",
- "refund_line_number": "XX-111-FF-1111",
- "refund_quantity": 1,
- "currency": "USD",
- "item_refund": 1.99,
- "item_tax_refund": 0.19,
- "shipping_refund": 2,
- "shipping_tax_refund": 0.2,
- "discount_refund": 1,
- "refund_notes": "Courtesy refund - thank you for your business"
}
]
}
Get all the refund adjustments created for the specifed order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "cancellations": [
- {
- "id": "109872189273617283",
- "cp_refund_number": "REFUND-1234",
- "refund_lines": [
- {
- "feedamp_order_line_id": "109872189273617283",
- "refund_reason": "customer_cancelled",
- "refund_line_number": "XX-111-FF-1111",
- "refund_quantity": 1,
- "currency": "USD",
- "item_refund": 1.99,
- "item_tax_refund": 0.19,
- "shipping_refund": 2,
- "shipping_tax_refund": 0.2,
- "discount_refund": 1,
- "refund_notes": "Courtesy refund - thank you for your business"
}
]
}
]
}
Get the details for the specified refund adjustment on the specifed order
order-id required | string (IdField) Example: 109872189273617283 FeedAMP Order ID |
refund-id required | string (IdField) Example: 109872189273617283 FeedAMP Refund ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "id": "109872189273617283",
- "cp_refund_number": "REFUND-1234",
- "refund_lines": [
- {
- "feedamp_order_line_id": "109872189273617283",
- "refund_reason": "customer_cancelled",
- "refund_line_number": "XX-111-FF-1111",
- "refund_quantity": 1,
- "currency": "USD",
- "item_refund": 1.99,
- "item_tax_refund": 0.19,
- "shipping_refund": 2,
- "shipping_tax_refund": 0.2,
- "discount_refund": 1,
- "refund_notes": "Courtesy refund - thank you for your business"
}
]
}
Post a refund to a return item request
return-id required | string (IdField) Example: 109872189273617283 FeedAMP Return ID |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
required | Array of objects (ReturnRefundLine) | ||||||||||
Array
|
{- "merchant_refund_lines": [
- {
- "feedamp_return_line_id": "109872189273617283",
- "item_refund": 1.99,
- "shipping_refund": 2,
- "refund_notes": "Requested Refund - thank you for your business",
- "merchant_full_refund": true
}
]
}
{- "id": "109872189273617283",
- "merchant_refund_lines": [
- {
- "feedamp_return_line_id": "109872189273617283",
- "item_refund": 1.99,
- "shipping_refund": 2,
- "refund_notes": "Requested Refund - thank you for your business",
- "merchant_full_refund": true
}
]
}
Get all returns that match the parameters that you have submitted. The maximum recommended call frequency for retrieving data from this endpoint is 2 requests per second.
marketplace_state | string The state of the return. Multiple states can be matched by specifying a comma-separated list of values. |
marketplace_state_changed_after | string <date-time> (DateTime) Example: marketplace_state_changed_after=2024-03-13T08:50:59-08:00 Marketplace state was last changed after this datetime. RFC-3339 date-time format — fractional seconds not allowed |
marketplace_state_changed_before | string <date-time> (DateTime) Example: marketplace_state_changed_before=2024-03-13T08:50:59-08:00 Marketplace state was last changed before this datetime. RFC-3339 date-time format — fractional seconds not allowed |
imported_after | string <date-time> (DateTime) Example: imported_after=2024-03-13T08:50:59-08:00 Returns created in FeedAMP after this datetime. RFC-3339 date-time format — fractional seconds not allowed |
imported_before | string <date-time> (DateTime) Example: imported_before=2024-03-13T08:50:59-08:00 Returns created in FeedAMP before this datetime. RFC-3339 date-time format — fractional seconds not allowed |
id | string FeedAMP return ID. May be a comma-delimited list of multiple IDs. |
marketplace_return_number | string The primary return ID provided by the marketplace. May be a comma-delimited list of multiple values. |
rma | string RMA ID of a return. May be a comma-delimited list of multiple values. |
customer_order_number | string The customer-facing order number associated with this return. May be a comma-delimited list of multiple values. |
return_type | string (ReturnTypes) Enum: "SHIP" "IN_STORE" "NO_RETURN" Filter returns by the return type |
integration_id | string (IdField) Example: integration_id=109872189273617283 FeedAMP integration ID to limit results to a single integration |
limit | integer [ 1 .. 250 ] Default: 100 The max number of records in the response |
cursor | string Cursor for the next page of records |
include_order | boolean Include the order data, associated with the return, in response |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "returns": [
- {
- "id": "109872189273617283",
- "order_id": "109872189273617283",
- "integration_name": "My Store",
- "marketplace_name": "Target",
- "marketplace_return_number": "111-99998888-55555",
- "rma": "1234567890",
- "merchant_return_number": "1234567890",
- "marketplace_order_number": "000-1234567-7654321",
- "marketplace_state": "Shipped",
- "normalized_marketplace_state": "string",
- "pre_authorized": true,
- "customer": {
- "full_name": "A. Customer",
- "email": "customer@internet-provider.com",
- "phone": "5558675309",
- "vat": "78131452263"
}, - "imported_date": "2020-12-31T12:34:56-05:00",
- "request_date": "2020-12-31T12:34:56-05:00",
- "respond_by_date": "2020-12-31T12:34:56-05:00",
- "notes": "leave by the back door.",
- "shipping_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "return_lines": [
- {
- "id": "109872189273617283",
- "marketplace_return_line_number": "XX-111-FF-1111",
- "marketplace_order_line_number": "XX-111-FF-1111",
- "feedamp_order_line_id": "109872189273617283",
- "sku": "1234-12353",
- "product_name": "ACME Super Product",
- "quantity": 1,
- "unit_price": 200,
- "reason": "Not what I ordered",
- "original_price": 1.95,
- "requested_refund": 1.95,
- "shipping_expected": false,
- "destination": "string",
- "label_cost": 1.95,
- "tracking_info": {
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string"
}
}
], - "return_type": "SHIP"
}
], - "next_cursor": "string"
}
Get a return identified for the specified return-id
return-id required | string (IdField) Example: 109872189273617283 FeedAMP Return ID |
include_order | boolean Include the order data, associated with the return, in response |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
{- "id": "109872189273617283",
- "order_id": "109872189273617283",
- "integration_name": "My Store",
- "marketplace_name": "Target",
- "marketplace_return_number": "111-99998888-55555",
- "rma": "1234567890",
- "merchant_return_number": "1234567890",
- "marketplace_order_number": "000-1234567-7654321",
- "marketplace_state": "Shipped",
- "normalized_marketplace_state": "string",
- "pre_authorized": true,
- "customer": {
- "full_name": "A. Customer",
- "email": "customer@internet-provider.com",
- "phone": "5558675309",
- "vat": "78131452263"
}, - "imported_date": "2020-12-31T12:34:56-05:00",
- "request_date": "2020-12-31T12:34:56-05:00",
- "respond_by_date": "2020-12-31T12:34:56-05:00",
- "notes": "leave by the back door.",
- "shipping_address": {
- "full_name": "John M. Doe",
- "address_type": "business",
- "address1": "123 Fake Street",
- "address2": "Building 456",
- "address3": "Room 789",
- "city": "Ghost Town",
- "state": "DC",
- "postal_code": "91234",
- "country_code": "USA",
- "country_code_iso2": "US",
- "phone": "9997776666"
}, - "return_lines": [
- {
- "id": "109872189273617283",
- "marketplace_return_line_number": "XX-111-FF-1111",
- "marketplace_order_line_number": "XX-111-FF-1111",
- "feedamp_order_line_id": "109872189273617283",
- "sku": "1234-12353",
- "product_name": "ACME Super Product",
- "quantity": 1,
- "unit_price": 200,
- "reason": "Not what I ordered",
- "original_price": 1.95,
- "requested_refund": 1.95,
- "shipping_expected": false,
- "destination": "string",
- "label_cost": 1.95,
- "tracking_info": {
- "carrier": " '4PX', 'A-1', 'AAA Cooper', 'ABF', 'Asendia', 'Best Buy', 'Blue Package', 'Canada Post', 'CEVA', 'China Post', 'Conway', 'DHL', 'DHL eCommerce', 'Estes', 'FedEx', 'Fedex Freight', 'FedEx SmartPost', 'First Mile', 'Hongkong Post', 'Hunter Logistics', 'India Post', 'JCEX', 'Lasership', 'Newgistics', 'Old Dominion', 'OnTrac', 'OSM', 'Pilot Freight', 'R+L', 'Roadrunner', 'Royal Mail', 'Saia', 'SF Express', 'SFC', 'Singapore Post', 'South Eastern Freight Lines', 'Streamlite', 'UPS', 'UPS Freight', 'UPS Mail Innovations', 'Urban Express', 'USPS', 'WanbExpress', 'Watkins and Shepard', 'YANWEN', 'Yellow Freight', 'Yun Express', 'Other'",
- "tracking_number": "string"
}
}
], - "return_type": "SHIP"
}
Run the operation specified in the request on an return. The contents of the request and response will vary depending on the operation.
return-id required | string (IdField) Example: 109872189273617283 FeedAMP Return ID |
op required | string Example: op=process Name of the operation to run |
token required | string The Authentication token obtained from the v1 get_token route |
client required | integer The ID of the client making the request |
The contents of the request and response will vary depending on the operation.
Authorize customer return to the marketplace
null
{- "operation": "string",
- "response": { }
}