HomeDocumentationCode SamplesAPI ReferenceAnnouncementsModelsRelease NotesFAQGitHubVideos
Developer HubAPI StatusSupport
Documentation
Developer HubAPI StatusSupport

Vendor Direct Fulfillment Transaction Status API v2021-12-28 Use Case Guide

Programmatic access to a direct fulfillment (DF) vendor's transaction status.

API Version: 2021-12-28

What is the Direct Fulfillment Transaction Status API?

Use this API to check the transaction status of your POST transactions.

The following operation is included:

OperationHTTP methodPathDescription
getTransactionStatusGET/vendor/directFulfillment/transactions/2021-12-28/transactions/{transactionId}Returns the status of the transaction indicated by the specified transactionId.

getTransactionStatus

Use the getTransactionStatus operation to check the status of a POST transaction. The response to certain Vendor API POST operations, such as submitAcknowledgement or submitShipmentConfirmations, contain a transaction ID that uniquely identifies the transaction. Amazon processes the transaction asynchronously, and you can query the transaction ID with the getTransactionStatus operation to retrieve the final processed status.

You can use the getTransactionStatus operation to check if transactions are successful. If unsuccessful, the response returns an error with details for correcting the transaction.

Transaction statusDefinition
FailureTransaction has failed.
ProcessingTransaction is in process.
SuccessTransaction has completed successfully.

The transaction status is supported for the following Direct Fulfillment APIs:

DescriptionAPI sectionOperation
Acknowledge orderDirect Fulfillment OrderssubmitAcknowledgement
Submit shipment confirmationsDirect Fulfillment ShippingsubmitShipmentConfirmations
Shipping label requestDirect Fulfillment ShippingsubmitShippingLabelRequest
Shipping status updatesDirect Fulfillment ShippingsubmitShipmentStatusUpdates
Inventory updateDirect Fulfillment InventorysubmitInventoryUpdate

If the transaction status is Processing for more than 15 minutes, then the transaction did not complete. If the transaction is successful, a Success status is returned. If unsuccessful, a Failure status is returned.

Invoice messages are not supported with getTransactionStatus. If you include them in your request, the status remains as Processing. If you have a payment-related query that pertains to a status that has not changed in more than 24 hours, go to Vendor Central, select Contact Us, and select the relevant queue. Before opening a case, ensure that you have correctly formatted the data for submission.

If a shipping label request for a transaction fails with Internal server error, you can go to Vendor Central and select Contact Us to initiate an investigation into the cause of the failure. This generally happens due to operational constraints. For data related failures, correct the data and resubmit the payload to get the order fulfilled.

Request

To return the transaction status, call the getTransactionStatus operation and pass the following parameter:

Path parameter

NameDescriptionRequired
transactionIdPreviously returned in the response to the POST request of a specific transaction.

Type: string
Yes

Request example

GET https://sellingpartnerapi-na.amazon.com/vendor/directFulfillment/transactions/2021-12-28/transactions/20190904190535-eef8cad8-418e-4ed3-ac72-789e2ee6214a

Response

A successful response includes the following:

NameDescriptionRequired
transactionIdThe unique identifier sent in the transactionId field in response to the post request of a specific transaction.

Type: string
Yes
statusCurrent processing status of the transaction.

enum ( Status )
Yes
errorsError code and message for the failed transaction. Only available when transaction status is 'Failure'.

Type: ErrorList
No

Response example

{
  "transactionId": "20190918190535-eef8cad8-418e-456f-ac72-789e2ee6813c",
  "status": "Failure",
  "errors": [
    {
      "code": "INVALID_ORDER_ID",
      "message": "Invalid order ID.",
      "details": "Please verify that the order ID is correct."
    }
  ]
}

List of errors

The following table contains a list of error codes for each message type. Use these error codes in your system to design a failure handling mechanism. Each error code has a message that explains the error and how to resolve it.

CodeMessageDetailsMessage type
INVALID_ORDER_IDInvalid order ID.Please verify that the order ID is correct.Acknowledgment
ACK_ALREADY_PROCESSEDOrder confirmation already received for {orderId}No further action required.Acknowledgment
INTERNAL_SERVER_ERRORInternal error. Please try again.Acknowledgment
SHIP_METHOD_NOT_SUPPORTED{ship_method} not supported by this channelPlease get label for {ship_method}, using your existing setup.ShipLabel
SHIP_METHOD_CHANGEDShip method for this PO has changed from {old_ship_method} to {ship_method}.Please get the label for {ship_method}, using your existing setup.ShipLabel
INVALID_DIMENSION_UNITRequest Rejected: Order ID {shipmentId} has invalid units of measure for the package(s) dimension.Please ensure package dimensions are IN or CMShipLabel
INVALID_PACKAGE_IDTotal {count} Invalid or Duplicate VendorPackageIds.Please fix the Invalid or Duplicate VendorPackageIds and try again.ShipLabel
INVALID_ORDER_ID_WAREHOUSE_COMBINATIONShippingLabel Rejected: Order ID {shipmentId} doesn't belong to warehouse {warehouseCode}.Please send valid order ID and warehouse codeShipLabel
INVALID_ORDER_STATUSRequest Rejected: Order {shipmentId} has been canceled.Order can't be shipped because it's in canceled status, please don't try to print label(s) again. If you think this order status is wrong, please contact us.ShipLabel
INVALID_WAREHOUSE_CODEShippingLabel Rejected: Invalid warehouse code {warehouseCode}.Please make sure to send a valid warehouse codeShipLabel
SHIPMENT_NOT_MUTABLERequest Rejected : Package dimensions for Order ID {shipmentId} can't be updated with current status.No further action required.ShipLabel
NO_ITEMS_PRESENTRequest Rejected: Order ID {shipmentId} has items not assigned to any package(s).Please make sure all items are map to the package(s).ShipLabel
PACKAGE_DIMENSION_NOT_VALIDRequest Rejected: Order ID {shipmentId} has invalid dimension for the package(s).Please add valid dimensions for your package(s).ShipLabel
PACKAGE_WEIGHT_NOT_VALIDRequest Rejected: Order ID {shipmentId} has invalid weight for the package(s).Please add valid weight for your package(s).ShipLabel
NO_SHIP_METHOD_ASSIGNABLERequest Rejected: At this time no ship-method can be assigned to Order ID {shipmentId}.Unable to assign ship-method. Please check your package dimensions and weight are accurate and print the label closer to the expected shipDate.ShipLabel
INCONSISTENT_SHIP_METHODSRequest Rejected: Different ship methods assigned across different package(s).Please try to ship all the items in a single box, if its not possible please contact us.ShipLabel
INTERNAL_NON_RETRYABLE_FAILURERequest Rejected: We have encounter an issue while processing your request.Please contact us.ShipLabel
INTERNAL_RETRYABLE_FAILURERequest Rejected: We have encounter an issue while processing your request.Please try again in few minutes. Please try again. And if issue persist please contact us.ShipLabel
EMPTY_PACKAGESASN Alert! Order ID {shipmentId} has empty packages.For future shipments, ensure your order has package(s).Shipment
EMPTY_ITEMSASN Alert! Order ID {shipmentId} has empty items.For future shipments, please ensure you add items to your ASN.Shipment
INTERNAL_FAILUREInternal error. Please try again.Internal error. Please try again.Shipment
NO_SHIP_METHODASN Rejected! No shipmethod found for package(s) {packageIds}.Please add your shipmethod and try again.Shipment
SHIPMENT_UNSHIPPABLEASN Rejected: Order ID {shipmentId} has no tracking-id or it has not processed the prerequisite documents (such as the label and p-slip).Please ensure all the pre-requisite documents (such as the label and p-slip) are processed and a valid tracking id is provided.Shipment
SHIPMENT_IMMUTABLEASN Rejected! Shipment status does not allow to update shipment.No further action required.Shipment
NOT_ALL_ITEMS_PRESENTASN Rejected: Order ID {shipmentId} has shipped quantity in packages that does not match the order quantity, and some items might not have a assigned package.Please add items to packages with correct shipped quantity.For items - {fnSku}, the expected quantity is {expectedQuantity} but the provided quantity is {providedQuantity}.Shipment
NO_ITEMS_PRESENTASN Rejected: Order ID {shipmentId} has items not assigned to any package(s).Please add items to packages.Shipment
DIMENSION_OR_WEIGHT_NOT_VALIDASN Rejected: Order ID {shipmentId} has negative or zero weight package(s).ASN Rejected: Order ID {shipmentId} has negative or zero weight package(s).Shipment
SHIP_METHOD_UNASSIGNABLEASN Rejected: Order ID {shipmentId} has ship-method that cannot be processed for the package(s).Unable to process ship-method. Please check your package dimensions, weight and ship-method.Shipment
INVALID_MESSAGE_PAYLOADInvalid input field {fieldName}.Shipment
VOC_NO_CARRIER_DETAILSASN Rejected! For orderId: {shipmentId}, Carrier details are not present for package {packageId}.Please add carrier or SCACCode and try again.Shipment
WEIGHT_NOT_PRESENT_FOR_PACKAGEASN rejected! For Order {shipmentId}. No Package weight present for package {packageId}.Please add weight and try again.Shipment
INVALID_TRACKING_IDASN Rejected: Invalid tracking id for package {packageId}.Varies based on carrier and for Amazon Ship label vendors, carrier has to match the one in ship labelShipment
INVALID_WAREHOUSE_CODEASN Rejected: Invalid warehouse code {warehouseCode}.Please verify that the warehouse code is correct.Shipment
ASN_ALREADY_PROCESSEDASN already received for {shipmentId}.No action needed, ASN is already processed.Shipment
INVALID_ORDER_ID_WAREHOUSEASN Rejected: OrderID {orderId} doesn't belong to warehouse {warehouseCode}.Please verify that the warehouse code and Order Id are correct.Shipment
INTERNAL_SERVER_ERRORInternal error. Please try again.Internal error. Please try again.Shipment