The Order Management API allows you to automate order fulfillment, giving you more control and efficiency over your order management. Use it to access and review order data, streamline fulfillment, and handle returns and refunds.
Future additional fields may be added to the order_info field over time as we actively develop the FeedAMP product. It is expected that Rest API integrations are able to tolerate additive (i.e. non-breaking) updates without requiring advance notice. Feedonomics will still continue to send out communication informing integrators of such updates after the fact.
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 have not yet been confirmed by the seller. The maximum recommended call frequency for retrieving data from this endpoint is 2 requests per second.
include_raw | boolean Default: false Set true to include the raw data from the marketplace for each order in results. |
limit | number The max number of orders in the response (50-200). Default is 100. |
cursor | string Cursor for the next page of orders. |
marketplace_fulfilled | boolean Set true to only include with marketplace_fulfilled set |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
{- "orders": [
- {
- "id": "123",
- "state": "ORDERED",
- "marketplace_state": "AWAITING_SHIPMENT",
- "integration_name": "amazon",
- "paused": 0,
- "acknowledged": 0,
- "order_info": {
- "mp_order_number": "111-99998888-55555",
- "mp_alt_order_number": "152-99632191476188",
- "customer_order_number": "19452824",
- "cp_order_number": "61438900216825",
- "marketplace_name": "amazon_uk",
- "sales_channel": "Amazon.com",
- "locale": "be-FR",
- "customer_full_name": "J.K. Rowling",
- "customer_email": "exempleethioet@amazon.com",
- "customer_phone": "5558675309",
- "customer_vat": "78131452263",
- "purchase_date": "2018-05-01T23:52:01.000Z",
- "currency": "USD",
- "delivery_notes": "leave by the back door.",
- "estimated_ship_date": "",
- "earliest_ship_date": "2018-02-04T22:00:00.000Z",
- "latest_ship_date": "2018-02-07T22:00:00.000Z",
- "estimated_delivery_date": "2018-02-10T22:00:00.000Z",
- "latest_delivery_date": "",
- "earliest_delivery_date": "2018-02-10T22:00:00.000Z",
- "is_amazon_prime": "",
- "is_wish_express": "",
- "gift_message": "",
- "paypal_transaction_ids": "",
- "feedamp_order_id": "",
- "marketing_opt_in": "",
- "shipping_full_name": "John M. Doe",
- "shipping_address_type": "business",
- "shipping_address1": "123 Fake Street",
- "shipping_address2": "Building 456",
- "shipping_address3": "Room 789",
- "shipping_city": "Ghost Town",
- "shipping_state": "DC",
- "shipping_postal_code": "91234",
- "shipping_country_code": "USA",
- "shipping_phone": "9997776666",
- "order_additional_properties": { },
- "order_lines": [
- {
- "mp_line_number": "afdafasdgasdg",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "quantity": 1,
- "unit_price": 200,
- "sales_tax": 20,
- "shipping_method": "FedEx",
- "shipping_price": 1.95,
- "shipping_tax": 0.19,
- "discount_name": "",
- "discount": 0,
- "shipping_discount_name": "",
- "shipping_discount": 0,
- "commission": 0,
- "amount_available_for_refund": 21.98,
- "is_tax_collected_by_marketplace": false,
- "bundle_components": [
- {
- "component_sku": "ComponentSKU",
- "component_quantity": 1,
- "component_product_name": "Component Product"
}
], - "order_line_additional_properties": { }
}
]
}, - "raw_order": {
- "type": "json",
- "data": "{\"id\":123,\"items\":[{\"sku\":\"SKU\",\"quantity\":1\"]}"
}
}
], - "next_cursor": "12FDG-31dsfgHW"
}
Get an order by order-id.
order-id required | integer The id of the order. |
include_raw | 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 get_token route. |
client required | integer The id of the client making the request. |
{- "order": [
- {
- "id": "123",
- "state": "ORDERED",
- "marketplace_state": "AWAITING_SHIPMENT",
- "integration_name": "amazon",
- "paused": 0,
- "acknowledged": 0,
- "order_info": {
- "mp_order_number": "111-99998888-55555",
- "mp_alt_order_number": "152-99632191476188",
- "customer_order_number": "19452824",
- "cp_order_number": "61438900216825",
- "marketplace_name": "amazon_uk",
- "sales_channel": "Amazon.com",
- "locale": "be-FR",
- "customer_full_name": "J.K. Rowling",
- "customer_email": "exempleethioet@amazon.com",
- "customer_phone": "5558675309",
- "customer_vat": "78131452263",
- "purchase_date": "2018-05-01T23:52:01.000Z",
- "currency": "USD",
- "delivery_notes": "leave by the back door.",
- "estimated_ship_date": "",
- "earliest_ship_date": "2018-02-04T22:00:00.000Z",
- "latest_ship_date": "2018-02-07T22:00:00.000Z",
- "estimated_delivery_date": "2018-02-10T22:00:00.000Z",
- "latest_delivery_date": "",
- "earliest_delivery_date": "2018-02-10T22:00:00.000Z",
- "is_amazon_prime": "",
- "is_wish_express": "",
- "gift_message": "",
- "paypal_transaction_ids": "",
- "feedamp_order_id": "",
- "marketing_opt_in": "",
- "shipping_full_name": "John M. Doe",
- "shipping_address_type": "business",
- "shipping_address1": "123 Fake Street",
- "shipping_address2": "Building 456",
- "shipping_address3": "Room 789",
- "shipping_city": "Ghost Town",
- "shipping_state": "DC",
- "shipping_postal_code": "91234",
- "shipping_country_code": "USA",
- "shipping_phone": "9997776666",
- "order_additional_properties": { },
- "order_lines": [
- {
- "mp_line_number": "afdafasdgasdg",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "quantity": 1,
- "unit_price": 200,
- "sales_tax": 20,
- "shipping_method": "FedEx",
- "shipping_price": 1.95,
- "shipping_tax": 0.19,
- "discount_name": "",
- "discount": 0,
- "shipping_discount_name": "",
- "shipping_discount": 0,
- "commission": 0,
- "amount_available_for_refund": 21.98,
- "is_tax_collected_by_marketplace": false,
- "bundle_components": [
- {
- "component_sku": "ComponentSKU",
- "component_quantity": 1,
- "component_product_name": "Component Product"
}
], - "order_line_additional_properties": { }
}
]
}, - "raw_order": {
- "type": "json",
- "data": "{\"id\":123,\"items\":[{\"sku\":\"SKU\",\"quantity\":1\"]}"
}
}
]
}
Confirm receipt of the order in FeedAMP. FeedAMP will acknowledge the order in the marketplace depending on the marketplace/seller settings.
order-id required | string FeedAMP order id |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
Confirmation details
cp_order_number required | string Seller order number. Must be unqiue for each order. |
{- "order": {
- "id": "123",
- "cp_order_number": "1234",
- "state": "PLACED"
}
}
Fulfill or cancel order. Post all fulfillments together to the Rest API for the order to move to fulfilled state. As a PUT request, the fulfillment call fully replaces all fulfillments currently stored in FeedAMP for the particular order. New fulfillments may be added to prior ones by retrieving the fufillments via a GET request, and then calling the PUT /fulfill endpoint with the new fulfillments added. Once all items have been fulfilled, the order will change state and no longer accept further updates.
If the order contains cancellations:
order-id required | string FeedAMP order id. |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
invoice_number | string An optional billing invoice number generated by your ecommerce platform. Currently only required for SkyHub marketplace. | ||||||||||||||||||||||||||
required | Array of objects List of ordered products. | ||||||||||||||||||||||||||
Array
|
[- {
- "order": {
- "id": "123",
- "cp_order_number": "1234",
- "state": "FULFILLED"
}
}
]
Create a refund in FeedAMP, FeedAMP will communicate the refund to the marketplace. A single refund can only be applied to one order line. A seller that wishes to refund more than one order line in an order must make multiple refunds in FeedAMP.
order-id required | string FeedAMP order id |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
required | object | ||||||||||||||||||||||
|
{- "id": "123",
- "order_id": "1234",
- "state": "CREATED",
- "refund_info": {
- "cp_refund_number": "REFUND-1234",
- "mp_line_number": "12445244",
- "refund_reason": "customer_return",
- "currency": "USD",
- "refund_quantity": 1,
- "item_refund": 1.01,
- "item_tax_refund": 0.11,
- "shipping_refund": 0,
- "shipping_tax_refund": 0,
- "discount_refund": 0,
- "refund_notes": ""
}
}
Search returns for a client. Filter results via query params. The maximum recommended call frequency for retrieving data from this endpoint is 2 requests per second.
open | boolean Setting to true will limit results to Returns considered to be in an open state. Setting to false will produce closed state Returns.
Open Returns are Returns that are NOT in a terminal state. Terminal states are considered to be NOTE: This parameter is overridden by the "state" parameter if provided |
state | Array of strings non-empty Items Enum: "Pending Authorization" "Pending Confirmation" "Pending Shipping" "Pending Refund" "Processing Refund" "Merchant Refunded" "Merchant Rejected" "Customer Cancelled" Examples:
Comma delimited list of Return states to filter by. e.g: ?state=Pending Authorization,Pending Confirmation |
marketplaces | string comma delimited list of marketplace IDs to filter results by |
created-before | string <date-time> filter results by returns created before date-time (ISO 8601) | if timezone is not specified default is EST/EDT. |
created-after | string <date-time> filter results by returns created after date-time (ISO 8601) | if timezone is not specified default is EST/EDT. |
refreshed-before | string <date-time> filter results by returns refreshed before date-time (ISO 8601) | if timezone is not specified default is EST/EDT. |
refreshed-after | string <date-time> filter results by returns refreshed after date-time (ISO 8601) | if timezone is not specified default is EST/EDT. |
merchant-return-number | string filter results by merchant return number (RMA) |
limit | number THe max number of returns in the response (50-200). Default is 100. |
cursor | string Cursor for the next page of returns. |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
{- "returns": [
- {
- "id": "123",
- "order_id": "456",
- "state": "Pending Authorization",
- "integration_name": "amazon",
- "paused": 0,
- "return_info": {
- "mp_return_number": "152-123344ABC",
- "mp_order_number": "111-99998888-55555",
- "pre_authorized": 1,
- "request_date": "2018-02-07T22:00:00.000Z",
- "respond_by_date": "2018-02-09T22:00:00.000Z",
- "notes": "Didn't fit me!",
- "merchant_return_number": "RMA-1234",
- "return_lines": [
- {
- "mp_return_line_number": "123-456-789",
- "mp_order_line_number": "afdafasdgasdg",
- "quantity": 2,
- "reason": "wrong_item_received",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "requested_refund_principal": 1.05,
- "requested_refund_tax": 0.11,
- "requested_refund_shipping": 0,
- "requested_refund_shipping_tax": 0,
- "shipping_expected": 1,
- "carrier": "FedEx",
- "tracking_number": "168739720393",
- "destination": "123 Example St. Los Angeles, CA"
}
]
}
}
], - "next_cursor": "12FDG-31dsfgHW"
}
Get a return by return ID
return-id required | integer The id of the return. |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
{- "return": {
- "id": "123",
- "order_id": "456",
- "state": "Pending Authorization",
- "integration_name": "amazon",
- "paused": 0,
- "return_info": {
- "mp_return_number": "152-123344ABC",
- "mp_order_number": "111-99998888-55555",
- "pre_authorized": 1,
- "request_date": "2018-02-07T22:00:00.000Z",
- "respond_by_date": "2018-02-09T22:00:00.000Z",
- "notes": "Didn't fit me!",
- "merchant_return_number": "RMA-1234",
- "return_lines": [
- {
- "mp_return_line_number": "123-456-789",
- "mp_order_line_number": "afdafasdgasdg",
- "quantity": 2,
- "reason": "wrong_item_received",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "requested_refund_principal": 1.05,
- "requested_refund_tax": 0.11,
- "requested_refund_shipping": 0,
- "requested_refund_shipping_tax": 0,
- "shipping_expected": 1,
- "carrier": "FedEx",
- "tracking_number": "168739720393",
- "destination": "123 Example St. Los Angeles, CA"
}
]
}
}
}
Authorize (or reject) a customer-initated return. This only applies to returns in the Pending Authorization
state.
This is also an opportunity for the seller to supply their own return number (i.e RMA) or shipping label.
return-id required | string FeedAMP return id |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
Return Authorization data
merchant_return_number required | string Seller Return Number, or RMA. Field is required, but can also be set to the mp_return_number value if desired. This number must be unique across all returns. |
{- "return": {
- "id": "123",
- "order_id": "456",
- "state": "Pending Authorization",
- "integration_name": "amazon",
- "paused": 0,
- "return_info": {
- "mp_return_number": "152-123344ABC",
- "mp_order_number": "111-99998888-55555",
- "pre_authorized": 1,
- "request_date": "2018-02-07T22:00:00.000Z",
- "respond_by_date": "2018-02-09T22:00:00.000Z",
- "notes": "Didn't fit me!",
- "merchant_return_number": "RMA-1234",
- "return_lines": [
- {
- "mp_return_line_number": "123-456-789",
- "mp_order_line_number": "afdafasdgasdg",
- "quantity": 2,
- "reason": "wrong_item_received",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "requested_refund_principal": 1.05,
- "requested_refund_tax": 0.11,
- "requested_refund_shipping": 0,
- "requested_refund_shipping_tax": 0,
- "shipping_expected": 1,
- "carrier": "FedEx",
- "tracking_number": "168739720393",
- "destination": "123 Example St. Los Angeles, CA"
}
]
}
}
}
Issue a full refund to the customer and close out the return. It's recommended to issue a refund on a return when it's in the Pending Refund
state.
return-id required | string FeedAMP return id. |
token required | string The Authentication token obtained from the get_token route. |
client required | integer The id of the client making the request. |
Authorize Refund Amounts Payload
required | Array of RefundFullAmount (object) or RefundPartialAmount (object) Refund Lines to be refunded | ||||
Array One of
|
{- "merchant_refund_lines": [
- {
- "feedamp_return_line_id": "0",
- "merchant_full_refund": true
}
]
}
{- "return": {
- "id": "123",
- "order_id": "456",
- "state": "Pending Authorization",
- "integration_name": "amazon",
- "paused": 0,
- "return_info": {
- "mp_return_number": "152-123344ABC",
- "mp_order_number": "111-99998888-55555",
- "pre_authorized": 1,
- "request_date": "2018-02-07T22:00:00.000Z",
- "respond_by_date": "2018-02-09T22:00:00.000Z",
- "notes": "Didn't fit me!",
- "merchant_return_number": "RMA-1234",
- "return_lines": [
- {
- "mp_return_line_number": "123-456-789",
- "mp_order_line_number": "afdafasdgasdg",
- "quantity": 2,
- "reason": "wrong_item_received",
- "sku": "1234-12353",
- "product_name": "Beats Pill Speakers",
- "requested_refund_principal": 1.05,
- "requested_refund_tax": 0.11,
- "requested_refund_shipping": 0,
- "requested_refund_shipping_tax": 0,
- "shipping_expected": 1,
- "carrier": "FedEx",
- "tracking_number": "168739720393",
- "destination": "123 Example St. Los Angeles, CA"
}
]
}
}
}