{"openapi":"3.0.1","info":{"description":"# OVERVIEW\nThis provides details of how carriers can integrate with Amazon SEND Platform. Amazon SEND has 4 basic operations viz ESTIMATE, CONFIRM, PICKUP and VOID and 1 additional operation viz FILE TRANSFER. Each operation is discussed in detail below:\n\nESTIMATE         : This operation is for retrieving shipping quotes from the carrier for a shipment.\n\nCONFIRM          :  This operation is for creating a shipment with the carrier.\n\nPICKUP              :  This operation is for scheduling/creating a pickup with the carrier.\n\nFILE TRANSFER :  This operation will be used for transferring customs related files to the carrier.\n\nVOID :  This operation is for cancelling the shipment (and pickup) with the carrier. \n\n# USAGE GUIDE\n\n## Getting Started\n\nTo integrate with the SEND Platform, carriers need to expose https API endpoints for estimate, confirm, pickup and void operations. The contract for these API operations is defined in the API Specification section. Once the carrier has developed these APIs, they should contact the SEND Team for onboarding their development and production endpoints to begin with the testing process.\n\n## Development and Testing\n\nYour development and testing will be conducted in the devo (test) environment until the solution has been signed off by the Amazon SEND Team. Tech support will be provided during this phase to help you complete and test the integration.\n\n# API SPECIFICATIONS\n\nDue to the nature of the information being transmitted by Amazon to Carrier Partners, all the API requests need to go via secure HTTP (HTTPS) protocol. Carrier Partners will need to expose https endpoints using JSON request-response framework. The expected latency of these APIs should be lesser than 2 seconds. Amazon would set a request timeout of 10 seconds for every API.\n\n## AUTHORISATION\n\nAmazon SEND will require credentials (or access key) to gain access to call carrier partner’s API servers. Carrier Partners will need to provide these credentials to Amazon which will be used by Amazon to call their APIs. These credentials (or access key) will be added to the API request headers by Amazon while calling the APIs. Carrier partners can take any of the following approaches to implement the authorization for the APIs:\n\n### Bearer token\n\nThe name “Bearer authentication” can be understood as “give access to the bearer of this token”. Bearer tokens enable requests to authenticate using an access key. The token is a text string, included in the request header. Amazon would send HTTP requests with the Authorization header that contains the word Bearer word followed by a space and a bearer token.\n\n> Authorization: Bearer abcdef12345\n\n### Basic auth\n\nBasic authentication transmits credentials as Username/Password pairs, encoded using base64. Amazon would send HTTP requests with the Authorization header that contains the word Basic word followed by a space and a base64-encoded string Username:Password.\n\n> Authorization: Basic ZGVtbzpwQDU1dzByZA==\n\n### No auth + Credentials from headers\n\nWith No auth, Authorization header will be empty and carrier partners will validate the request using special fields present in the headers that will be provided by the carrier partners. Carrier partners can use any key/value pair for this.\n\n> Name: UPS\n\n> PW: UPS\n\nCarrier partners can also use Bearer token + Credentials from headers, Basic auth + Credentials from headers, API Keys etc.\n\n## Error Codes\n\n| Sr No | Error Code                              | Description                                                                                         |\n|-------|-----------------------------------------|-----------------------------------------------------------------------------------------------------|\n|     1 | INVALID_CREDENTIALS                     | Auth credentials are invalid                                                                        |\n|     2 | INVALID_SHIP_FROM_ADDRESS_LINE1         | Origin address line 1 is invalid                                                                    |\n|     3 | INVALID_SHIP_FROM_ADDRESS_LINE2         | Origin address line 2 is invalid                                                                    |\n|     4 | INVALID_SHIP_FROM_ADDRESS_LINE3         | Origin address line 3 is invalid                                                                    |\n|     5 | INVALID_SHIP_FROM_CITY                  | Origin city is invalid                                                                              |\n|     6 | INVALID_SHIP_FROM_COUNTRY               | Origin country is invalid                                                                           |\n|     7 | INVALID_SHIP_FROM_POSTAL_CODE           | Origin postal code is invalid                                                                       |\n|     8 | INVALID_SHIP_FROM_STATE                 | Origin state is invalid                                                                             |\n|     9 | INVALID_SHIP_FROM_PHONE                 | Origin phone is invalid                                                                             |\n|    10 | INVALID_SHIP_FROM_NAME                  | Origin name is invalid                                                                              |\n|    11 | INVALID_SHIP_TO_ADDRESS_LINE1           | Destination address line 1 is invalid                                                               |\n|    12 | INVALID_ SHIP_TO _ADDRESS_LINE2         | Destination address line 2 is invalid                                                               |\n|    13 | INVALID_ SHIP_TO _ADDRESS_LINE3         | Destination address line 3 is invalid                                                               |\n|    14 | INVALID_ SHIP_TO _CITY                  | Destination city is invalid                                                                         |\n|    15 | INVALID_ SHIP_TO _STATE                 | Destination state is invalid                                                                        |\n|    16 | INVALID_ SHIP_TO _COUNTRY               | Destination country is invalid                                                                      |\n|    17 | INVALID_ SHIP_TO _POSTAL_CODE           | Destination postal code is invalid                                                                  |\n|    18 | UNAVAILABLE_PICKUP_DATE                 | Pickup date is not available                                                                        |\n|    19 | UNAVAILABLE_DROPOFF_DATE                | Dropoff date is not available                                                                       |\n|    20 | INVALID_SHIPPING_SERVICE_ID             | Shipping service id is invalid                                                                      |\n|    21 | INVALID_COMMODITY_DESCRIPTION           | Commodity description is invalid                                                                    |\n|    22 | INVALID_EXPORT_LICENSE_NUMBER           | Export License Number is invalid                                                                    |\n|    23 | INVALID_VAT_NUMBER                      | VAT Number is invalid                                                                               |\n|    24 | INVALID_EORI_NUMBER                     | EORI number is invalid                                                                              |\n|    25 | INVALID_ COMPANY_NAME                   | Company name is invalid                                                                             |\n|    26 | INVALID_COMPANY_NAME_IN_ORIGIN_LANGUAGE | Company name in origin language is invalid                                                          |\n|    27 | INVALID_CONTACT_ADDRESS                 | Contact address is invalid                                                                          |\n|    28 | INVALID_CONTACT_NAME                    | Contact name is invalid                                                                             |\n|    29 | INVALID_CONTACT_PHONE                   | Contact phone is invalid                                                                            |\n|    30 | INVALID_CONTACT_EMAIL                   | Contact email is invalid                                                                            |\n|    31 | INVALID_COMPANY_ADDRESS                 | Company address is invalid                                                                          |\n|    32 | INVALID_COMPANY_ADDRESS_LINE1           | Company address line 1 is invalid                                                                   |\n|    33 | INVALID_COMPANY_ADDRESS_LINE2           | Company address line 2 is invalid                                                                   |\n|    34 | INVALID_COMPANY_ADDRESS_LINE3           | Company address line 3 is invalid                                                                   |\n|    35 | INVALID_COMPANY_CITY                    | Company city is invalid                                                                             |\n|    36 | INVALID_COMPANY_COUNTRY                 | Company country is invalid                                                                          |\n|    37 | INVALID_COMPANY_STATE                   | Compant state is invalid                                                                            |\n|    38 | INVALID_COMPANY_POSTAL_CODE             | Company postal code is invalid                                                                      |\n|    39 | INVALID_COMPANY_PHONE                   | Company phone is invalid                                                                            |\n|    40 | PICKUP_CAN_NOT_BE_CREATED               | Pickup can’t be scheduled/created                                                                   |\n|    41 | CARRIER_SERVICE_NOT_AVAILABLE           | Carrier service is down or some internal failure happened                                           |\n|    42 | VALIDATION_ERROR                        | Request validation failed                                                                           |\n|    43 | SHIPMENT_ALREADY_VOIDED                 | Shipment has already been cancelled                                                                 |\n|    44 | SHIPMENT_DOES_NOT_EXIST                 | Shipment does not exist (has not been created) for the request id                                   |\n|    45 | NO_RATE_CARD_FOR_REQUEST                | Rates can not be calculated for the requested boxes because of carrier’s rate card constraints.     |\n|    46 | INVALID_FILE_FORMAT                     | File format should either be PDF or CSV                                                             |\n|    47 | INVALID_FILE_CONTENT                    | Base 64 content of the file is invalid                                                              |\n|    48 | INVALID_DOCUMENT_NAME                   | Document Name is invalid                                                                            |\n|    49 | INVALID_OR_UNSUPPORTED_ORIGIN_PORT      | Provided input port is invalid or unserviceable                                                     |\n|    50 | INVALID_PARTY_TYPE                      | Provided party type in confirm request is invalid                                                   |\n|    51 | INVALID_SHIPMENT_TYPE                   | Shipment Type is Invalid                                                                            |\n|    52 | CARRIER_SERVICE_UNAVAILABLE_TEMPORARILY | Carrier Service is on planned downtime.                                                             |\n|    53 | INVALID_REQUEST_DROPOFF_NOT_SUPPORTED   | Carrier doesn't support dropoff                                                                     |\n|    54 | LABEL_UPLOAD_WITH_URL_FAILED            | When label upload fails using URL links in the boxes.                                               |\n|    55 | UNSUPPORTED_NOTIFICATION_TYPE           | When the notification sent is not supported                                                         |\n|    56 | INVALID_NOTIFICATION_METADATA           | When the metadata passed with notification contain invalid data. Pass details in the error message. |\n\n","title":"Amazon SEND Developer API","version":"1.15"},"paths":{"/confirm":{"post":{"description":"Amazon will call the confirm API to create shipment with the carrier. The request headers will contain the\nauthorisation credentials required to access the endpoint. Carrier partners should ignore any additional\nfield that might come as part of the request body apart from the ones mentioned below (and should not fail\nthe request). The confirm API will be idempotent in nature and will return same results for same input\nrequest if retried multiple times. The idempotency key would be the “requestId”. So, if a shipment is\nalready booked against a request id, Confirm API should return back the same response (with already\ngenerated labels and tracking ids), if a request comes with the same request id.\n","operationId":"confirm","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmRequest"}}},"description":"Request body to capture confirmation details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmResponse"}}},"description":"Confirmed shipment successfully"},"400":{"description":"Bad Request - Invalid input parameters"},"500":{"description":"Internal Server Error - Unexpected server-side error occurred"}},"summary":"CONFIRM API"}},"/estimate":{"post":{"description":"Amazon will call the estimate API to request shipping quotes from the carrier. Carriers need to calculate\nthe shipping rates along with the pickup availability (or drop off availability) for the selected date.\nThe request headers will contain the authorisation credentials required to access the endpoint. Carrier\npartners should ignore any additional field that might come as part of the request body apart from the ones\nmentioned below (and should not fail the request). The estimate API will be non idempotent in nature and can\ngive different results (might be due to peak surcharges etc.) for same input request if retried multiple\ntimes.\n","operationId":"estimate","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateRequest"}}},"description":"Request body to capture estimate details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EstimateResponse"}}},"description":"Estimated shipment successfully"},"400":{"description":"Bad Request - Invalid input parameters"},"500":{"description":"Internal Server Error - Unexpected server-side error occurred"}},"summary":"ESTIMATE API"}},"/fileTransfer":{"post":{"description":"Carrier partners require seller and shipment related documents for custom clearance. These documents are\nuploaded by the sellers as part of the shipment booking workflow. Amazon will call the file transfer API to\ntransfer these documents to carrier partners. The request headers will contain the authorization credentials\nrequired to access the endpoint. Carrier partners should ignore any additional field that might come as part\nof the request body apart from the ones mentioned below (and should not fail the request). The file transfer\nAPI will be idempotent in nature and will return same results for same input request if retried multiple\ntimes. The idempotency key will be the documentId. This API can be called multiple times for same document\nwith different (or same) documentId. So, if a document already exists (successfully transferred before) with\na documentId, then file transfer API should return back the same success response if another request comes\nin with the same documentId. If another request comes in with a different documentId for the same document,\nAPI should override the existing document with the new one that is received in the request.\n","operationId":"fileTransfer","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentRequest"}}},"description":"Request body to capture file transfer details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentResponse"}}},"description":"File transferred successfully"},"400":{"description":"Bad Request - Invalid input parameters"},"500":{"description":"Internal Server Error - Unexpected server-side error occurred"}},"summary":"FILE TRANSFER API"}},"/pickup":{"post":{"description":"Amazon will call the pickup API to create pickup with the carrier. The request headers will contain the\nauthorisation credentials required to access the endpoint. Carrier partners should ignore any additional\nfield that might come as part of the request body apart from the ones mentioned below (and should not fail\nthe request). The pickup API will be idempotent in nature and will return same results for same input\nrequest if retried multiple times. The idempotency key would be the “requestId”. So, if a pickup is already\nscheduled against a request id, Pickup API should return back the same response (with already generated\npickup id), if a request comes with the same request id.\n","operationId":"pickup","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickupRequest"}}},"description":"Request body to capture pickup details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PickupResponse"}}},"description":"Pickup scheduled successfully"},"400":{"description":"Bad Request - Invalid input parameters"},"500":{"description":"Internal Server Error - Unexpected server-side error occurred"}},"summary":"PICKUP API"}},"/void":{"post":{"description":"Amazon will call the void API to cancel shipment (and pickup if already created) with the carrier. The\nrequest headers will contain the authorisation credentials required to access the endpoint. Carrier partners\nshould ignore any additional field that might come as part of the request body apart from the ones mentioned\nbelow (and should not fail the request). The void API will be idempotent in nature and will return same\nresults for same input request if retried multiple times. The idempotency key would be the “requestId”. So,\nif a shipment (and pickup) is already cancelled for a request id, then void API should return back the same\nsuccess response if a request comes with the same request id.\n","operationId":"void","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidRequest"}}},"description":"Request body to capture void request details"},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoidResponse"}}},"description":"Voided shipment successfully"},"400":{"description":"Bad Request - Invalid input parameters"},"500":{"description":"Internal Server Error - Unexpected server-side error occurred"}},"summary":"VOID API"}}},"components":{"schemas":{"AdditionalCarrierService":{"description":"An additional service offered by carrier, such as using seller-owned export license","properties":{"cost":{"$ref":"#/components/schemas/Currency"},"name":{"description":"Enum name of the additional carrier service.","enum":["PICKUP","USE_OWN_EOR","USE_OWN_IOR"],"type":"string"}},"required":["cost","name"],"type":"object"},"Address":{"description":"    This contains list of all locations for dropping off the shipment. Carriers should send list of\n    all drop-off locations for which the shipping cost remains same. This will be null for pickup\n    service offering type.\n    Field Requirement: Conditional, If pickupType is \"DROPOFF\"\n","properties":{"addressContent":{"$ref":"#/components/schemas/AddressContent"}},"type":"object"},"AddressContent":{"description":"The address details","properties":{"addressLineOne":{"description":"Address line one.","example":"Near High School","type":"string"},"addressLineThree":{"description":"Address line three.","example":"Ben, Commune","type":"string"},"addressLineTwo":{"description":"Address line two.","example":"3rd cross road","type":"string"},"city":{"description":"City.","example":"Soc Son District","type":"string"},"countryCode":{"description":"Country code.","example":"VN","type":"string"},"district":{"description":"District.","example":"Soc Son District","type":"string"},"postalCode":{"description":"Postal code.","example":"100000","type":"string"},"stateProvince":{"description":"State.","example":"Hanoi","type":"string"}},"type":"object"},"Box":{"description":"Box details","properties":{"containerType":{"description":"Type of container","example":"PACKAGE","type":"string"},"dimensions":{"$ref":"#/components/schemas/Dimension"},"id":{"description":"Container Number (id).","example":1,"format":"int32","type":"integer"},"items":{"description":"List of items present in the container.","items":{"$ref":"#/components/schemas/Item"},"type":"array"},"labelUploadURL":{"description":"URL to be used for uploading labels","example":"https://my-bucket.s3.us-west-2.amazonaws.com/example.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256","type":"string"},"weight":{"$ref":"#/components/schemas/Weight"}},"required":["containerType","dimensions","id","weight"],"type":"object"},"CarrierLabel":{"description":"The shipping labels provided by the carrier","properties":{"packageNumber":{"description":"Box (package) number.","example":1,"format":"int32","type":"integer"},"rawLabel":{"description":"This is box’s carrier label image in base64 format. The image file type should be PNG/JPG. It should be in 1250 * 1250 pixels 72 dpi","example":"QXJ0aWZpY2lhbCBJbnRlbGxpZ2VuY2UgaXMgYW1hemluZyBhbmQgdHJhbnNmb3JtYXRpdmUu","type":"string"}},"required":["packageNumber","rawLabel"],"type":"object"},"CompanyAddress":{"description":"Address details of Company","properties":{"addressContent":{"$ref":"#/components/schemas/AddressContent"},"companyName":{"description":"Name of Company","example":"Amazon LLC","type":"string"},"contactInfo":{"$ref":"#/components/schemas/ContactInfo"},"name":{"description":"Name of POC","example":"Mr. XYZ","type":"string"}},"required":["addressContent","contactInfo","name"],"type":"object"},"ConfirmRequest":{"description":"The request to confirm a shipment","properties":{"boxes":{"description":"    Details of boxes content including dimensions, quantity and SKUS\n","items":{"$ref":"#/components/schemas/Box"},"type":"array"},"carrierLabelTransferMode":{"description":"This would tell whether labels should be uploaded using URLs or returned back as base64 in confirm response.","enum":["Payload","URL"],"type":"string"},"companyAddress":{"$ref":"#/components/schemas/CompanyAddress"},"contactAddressDetails":{"$ref":"#/components/schemas/ContactAddress"},"fbaShipmentId":{"description":"    This is the Amazon's FBA program id for the shipment.\n","example":"null","type":"string"},"fcAddress":{"$ref":"#/components/schemas/FCAddress"},"fromAddress":{"$ref":"#/components/schemas/FromAddress"},"importExportAttributes":{"$ref":"#/components/schemas/ImportExportAttributes"},"merchantId":{"description":"    Amazon provided identifier to uniquely identify a Seller within a destination country\n    Field Requirement: Conditional, provided on need basis\n","example":"AaXtRaxWY134caRazRcZANwXWSEaxer","type":"string"},"oceanContainers":{"description":"    Array of FCL container specifications for Ocean FCL shipments\n    Transportation Mode: Ocean FCL\n    Field Requirement: Optional, provided for FCL\n","items":{"$ref":"#/components/schemas/OceanContainer"},"type":"array"},"offerId":{"description":"    This is the identification of offer shared by carrier during estimate on which confirm is happening.\n","example":"XYZ","type":"string"},"originPort":{"description":"    Port from where shipment originates currently\n    Transportation Mode: Ocean\n    Field Requirement: Conditional, currently provided for VN2US\n","enum":["MUMBAI"],"type":"string"},"partyType":{"description":"    This represents the type of party it can be an Individual or a company hence it can take values “INDIVIDUAL” in case of an individual party or “COMPANY”\n    Transportation Mode: Ocean\n    Field Requirement: Conditional, currently provided for VN2US\n","enum":["COMPANY","INDIVIDUAL"],"type":"string"},"pickupWindow":{"$ref":"#/components/schemas/DateTimeWindow"},"requestId":{"description":"    This is the SEND requestId. Carriers can consider this as main request id for processing the request. The shipment needs to be created against this request id. This id would remain same for pickup and void API calls for the shipment.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"serviceOfferingType":{"description":"    This is the selected shipping service offering type. For Air and Ocean LCL shipments: \"PICKUP\" or \"DROPOFF\". For Ocean FCL shipments: \"CARRIER_PICKUP_FROM_SELLER_LOCATION\", \"CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION\", \"SELLER_DROP_AT_CONTAINER_FREIGHT_STATION\" or \"SELLER_DROP_LOADED_CONTAINER_AT_ORIGIN_PORT\".\n\n    Note: \"CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION\" is only available for certain lanes/shipping routes.\n","enum":["CARRIER_PICKUP_FROM_SELLER_LOCATION","CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION","DROPOFF","PICKUP","SELLER_DROP_AT_CONTAINER_FREIGHT_STATION","SELLER_DROP_LOADED_CONTAINER_AT_ORIGIN_PORT"],"type":"string"},"shipmentServiceOptions":{"$ref":"#/components/schemas/ShipmentServiceOptions"},"shipMode":{"description":"This represents the transportation mode of shipment.","enum":["OCEAN_FCL","AIR_SPD","OCEAN_LCL"],"type":"string"},"shippingServiceId":{"description":"    This is a unique id for the service offered by the carrier. This id will be created by SEND Team and will be shared with the carrier.\n","example":"send-ups_expedited-us","type":"string"},"volumeDiscountContext":{"$ref":"#/components/schemas/VolumeDiscountContext"}},"required":["boxes","carrierLabelTransferMode","companyAddress","contactAddressDetails","fbaShipmentId","fcAddress","fromAddress","pickupWindow","requestId","serviceOfferingType","shipMode","shippingServiceId"],"type":"object"},"ConfirmResponse":{"properties":{"billOfLadingId":{"description":"    Identification number for Bill Of Loading.\n    Transportation Mode: Ocean\n","example":"ZX22039733A","type":"string"},"confirmResult":{"$ref":"#/components/schemas/TaskResult"},"monetaryDetails":{"$ref":"#/components/schemas/MonetaryDetails"},"pickupSchedulerRequest":{"$ref":"#/components/schemas/PickupSchedulerRequest"},"referenceId":{"description":"    This is the id against which the carrier would send payment invoice to Amazon. Usually this is same as the master tracking id.\n","example":"ZX22039733A","type":"string"},"requestId":{"description":"    This is the SEND requestId. This is same as the requestId received in the request.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"shipmentTrackingId":{"description":"    This is the master tracking id of the shipment.\n","example":"ZX22039733A","type":"string"},"trackingIdToCarrierLabelMap":{"additionalProperties":{"$ref":"#/components/schemas/CarrierLabel"},"description":"    This contains mapping of individual box’s tracking ids with their respective carrier labels.\n    The key is of type String and would be like Map<String, CarrierLabel>.\n","type":"object"}},"required":["confirmResult","requestId"],"type":"object"},"ContactAddress":{"description":"Address and contact details of Contact Person","properties":{"contactInfo":{"$ref":"#/components/schemas/ContactInfo"},"name":{"description":"Name of POC","example":"Van Dang","type":"string"}},"required":["contactInfo","name"],"type":"object"},"ContactInfo":{"description":"The contact details","properties":{"email":{"description":"Email  Address.","example":"111@gmail.com","type":"string"},"phoneNumber":{"description":"Phone number.","example":"+91 1234567890","type":"string"}},"type":"object"},"Currency":{"description":"Represents a monetary value in a particular currency. This could be the cost of a service.","properties":{"unit":{"description":"Unit of cost. This will be the currency code of destination country (like “USD”, “GBP” etc.)","example":"USD","type":"string"},"value":{"description":"Cost value","example":111.22,"format":"double","type":"number"}},"required":["unit","value"],"type":"object"},"DateTimeWindow":{"description":"    Represents a date + time window. Typically used for denoting either a window when a shipment is to be picked up or dropped off or delivered.\n    The window is inclusive of the start and end timestamps.\n","properties":{"inclusiveEndTimestamp":{"description":"End Timestamp in epoch millis","example":16470179990222,"format":"int64","type":"integer"},"inclusiveStartTimestamp":{"description":"Start Timestamp in epoch millis","example":1647017999000,"format":"int64","type":"integer"},"timeZone":{"description":"Time Zone. Default time zone is “UTC”","example":"UTC","type":"string"}},"required":["inclusiveEndTimestamp","timeZone"],"type":"object"},"Dimension":{"description":"Represents the dimension of an object. Mostly used in Container","properties":{"height":{"description":"Height of the container.","example":18.8,"format":"double","type":"number"},"length":{"description":"Length of the container.","example":8.3,"format":"double","type":"number"},"unit":{"description":"Unit of dimensions. Unit will be based on destination country. It can take values “in” (inches) and “cm” (centimeter).","example":"in","type":"string"},"width":{"description":"Width of the container.","example":18.8,"format":"double","type":"number"}},"required":["height","length","unit","width"],"type":"object"},"DocumentRequest":{"properties":{"documentContent":{"description":"    Document content in base64 format.\n","example":"dHJhY2tpbmdObyxpdGVtUmVmZXJlbmNlLGl0ZW1OYW1lLGl0ZW1EZXNjcmlwdGlvbixpdGVtQn==","type":"string"},"documentId":{"description":"    Unique document identifier. This will change for a new version of the document.\n","example":"898831ad_PL_1","type":"string"},"documentName":{"description":"    Name of document to upload. For eg: PACKING_LIST, COMMERCIAL_INVOICE\n","example":"PACKING_LIST","type":"string"},"fbaShipmentId":{"description":"    This is the Amazon's FBA program id for the shipment.\n    Field Requirement: Conditional, if file transfer related to shipment\n","example":"FBA16M7R6FJ0","type":"string"},"merchantId":{"description":"    Amazon provided identifier to uniquely identify a Seller within a destination country\n    Field Requirement: Conditional, provided on need basis\n","example":"AaXtRaxWY134caRazRcZANwXWSEaxer","type":"string"},"mimeType":{"description":"    Document extension: csv/pdf\n","example":"CSV","type":"string"},"requestId":{"description":"    This is the SEND requestId. This is same as the requestId received in the earlier estimate and confirm requests.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"}},"required":["documentContent","documentId","documentName","mimeType","requestId"],"type":"object"},"DocumentResponse":{"properties":{"documentId":{"description":"    documentId received in the request\n","example":"898831ad_PL_1","type":"string"},"fileTransferResult":{"$ref":"#/components/schemas/TaskResult"},"requestId":{"description":"    This is the SEND requestId. This is same as the requestId received in the request.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"}},"required":["documentId","fileTransferResult","requestId"],"type":"object"},"DropOffAddress":{"description":"    Available drop off locations for the carrier\n","properties":{"addressContent":{"$ref":"#/components/schemas/AddressContent"},"contactInfo":{"$ref":"#/components/schemas/ContactInfo"},"name":{"description":"Name of POC","example":"Zhangsan","type":"string"}},"type":"object"},"EstimatedServiceOffering":{"description":"    This would contain quotes for the shipping service offers.\n    Field Requirement: Conditional, based on task success\n","properties":{"additionalCarrierServices":{"items":{"$ref":"#/components/schemas/AdditionalCarrierService"},"type":"array"},"amazonCostEstimate":{"$ref":"#/components/schemas/Currency"},"billingVolume":{"$ref":"#/components/schemas/Volume"},"billingWeight":{"$ref":"#/components/schemas/Weight"},"dropOffAddresses":{"description":"    Available drop off locations for the carrier\n","items":{"$ref":"#/components/schemas/DropOffAddress"},"type":"array"},"dropoffLocations":{"description":"    This contains list of all locations for dropping off the shipment. Carriers should send list of\n    all drop-off locations for which the shipping cost remains same. This will be null for pickup\n    service offering type.\n    Field Requirement: Conditional, If pickupType is \"DROPOFF\"\n","items":{"$ref":"#/components/schemas/Address"},"type":"array"},"estimatedDeliveryDate":{"$ref":"#/components/schemas/DateTimeWindow"},"estimatedPickupWindow":{"$ref":"#/components/schemas/DateTimeWindow"},"monetaryDetails":{"$ref":"#/components/schemas/MonetaryDetails"},"numPackagesEstimated":{"description":"    Number of packages in the shipment.\n","example":3,"format":"int32","type":"integer"},"pickupType":{"description":"    This can take values: “PICKUP” or “DROPOFF” based on the service offering type.\n","enum":["DROPOFF","PICKUP"],"type":"string"},"shipmentCostLineItems":{"items":{"$ref":"#/components/schemas/ShipmentCostLineItem"},"type":"array"},"shippingServiceId":{"description":"    Amazon provided shipping service id for the carrier service.\n","example":"send-ups_expedited-us","type":"string"}},"required":["amazonCostEstimate","billingVolume","billingWeight","monetaryDetails","numPackagesEstimated","pickupType","shippingServiceId"],"type":"object"},"EstimateRequest":{"description":"The request to generate an estimate for shipment","properties":{"boxes":{"description":"    The List of boxes in a shipment\n","items":{"$ref":"#/components/schemas/Box"},"type":"array"},"fbaShipmentId":{"description":"    This is the Amazon's FBA program id for the shipment.\n","example":"FBA16M7R6FJ0","type":"string"},"fcAddress":{"$ref":"#/components/schemas/FCAddress"},"fromAddress":{"$ref":"#/components/schemas/FromAddress"},"merchantId":{"description":"    Amazon provided identifier to uniquely identify a Seller within a destination country\n    Field Requirement: Conditional, provided on need basis\n","example":"AaXtRaxWY134caRazRcZANwXWSEaxer","type":"string"},"oceanContainers":{"description":"    Array of FCL container specifications for Ocean FCL shipments\n    Transportation Mode: Ocean FCL\n    Field Requirement: Optional, provided for FCL\n","items":{"$ref":"#/components/schemas/OceanContainer"},"type":"array"},"originPort":{"description":"    Port from where shipment originates currently\n    Transportation Mode: Ocean\n    Field Requirement: Conditional, currently provided for VN2US\n","enum":["MUMBAI"],"type":"string"},"pickupWindow":{"$ref":"#/components/schemas/DateTimeWindow"},"requestId":{"description":"    This is the SEND requestId. Carriers can consider this as main request id for processing the request.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"serviceOfferingType":{"description":"    This is the selected shipping service offering type. For Air and Ocean LCL shipments: \"PICKUP\" or \"DROPOFF\". For Ocean FCL shipments: \"CARRIER_PICKUP_FROM_SELLER_LOCATION\", \"CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION\", \"SELLER_DROP_AT_CONTAINER_FREIGHT_STATION\" or \"SELLER_DROP_LOADED_CONTAINER_AT_ORIGIN_PORT\". If pickup is selected carrier need to check for the pickup availability for that date as well.\n\n    Note: \"CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION\" is only available for certain lanes/shipping routes.\n","enum":["CARRIER_PICKUP_FROM_SELLER_LOCATION","CARRIER_PICKUP_LOADED_CONTAINER_FROM_SELLER_LOCATION","DROPOFF","PICKUP","SELLER_DROP_AT_CONTAINER_FREIGHT_STATION","SELLER_DROP_LOADED_CONTAINER_AT_ORIGIN_PORT"],"type":"string"},"shipmentServiceOptions":{"$ref":"#/components/schemas/ShipmentServiceOptions"},"shipMode":{"description":"This represents the transportation mode of shipment.","enum":["OCEAN_FCL","AIR_SPD","OCEAN_LCL"],"type":"string"},"shippingServiceId":{"description":"    This is a unique id for the service offered by the carrier. This id will be created by SEND Team and will be shared with the carrier.\n","example":"send-ups_expedited-us","type":"string"},"volumeDiscountContext":{"$ref":"#/components/schemas/VolumeDiscountContext"}},"required":["boxes","fcAddress","fromAddress","pickupWindow","requestId","serviceOfferingType","shipMode","shippingServiceId"],"title":"EstimateRequest","type":"object"},"EstimateResponse":{"properties":{"estimatedServiceOffering":{"$ref":"#/components/schemas/EstimatedServiceOffering"},"estimateResult":{"$ref":"#/components/schemas/TaskResult"},"offerId":{"description":"    This is the identification of offer shared by carrier.\n    Field Requirement: Conditional, based on task success\n","example":"XYZ","type":"string"},"requestId":{"description":"    This is the SEND requestId. This is same as the requestId received in the request.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"}},"required":["estimateResult","requestId"],"type":"object"},"EventDateTime":{"description":"This represents a point in time related to an event.","properties":{"timestamp":{"description":"Time in epoch millis","example":1646931600000,"format":"int64","type":"integer"},"timeZone":{"description":"Time Zone. Default time zone is “UTC”","example":"UTC","type":"string"}},"required":["timestamp","timeZone"],"type":"object"},"FCAddress":{"description":"Destination Address of Amazon FC.","properties":{"addressContent":{"$ref":"#/components/schemas/AddressContent"},"fcId":{"description":"Identifier of Amazon FC","example":"NRT5","type":"string"},"name":{"description":"Name of contact from Destination (if any)","example":"Beta","type":"string"}},"required":["addressContent","fcId"],"type":"object"},"FromAddress":{"description":"Origin Address of the Seller.","properties":{"addressContent":{"$ref":"#/components/schemas/AddressContent"},"contactInfo":{"$ref":"#/components/schemas/ContactInfo"},"name":{"description":"Name of contact from origin","example":"Alpha","type":"string"}},"required":["addressContent","contactInfo","name"],"type":"object"},"ImportExportAttributes":{"description":"    This contains any additional information that will be required by carriers for customs clearance.\n    This is an extensible object and can contain more fields that are required for shipment creation.\n","properties":{"bondNumber":{"description":"    Seller's bond Number\n","example":"DEX1234567","type":"string"},"commodityDescription":{"description":"    Description of the commodity provided by the seller\n","example":"20 oz Stainless Steel Tumbler","type":"string"},"companyName":{"description":"    Name of the company as provided by the seller\n","example":"Do Phuong","type":"string"},"companyNameInOriginLanguage":{"description":"    Name of the company as provided by the seller in origin language\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"eoriNumber":{"description":"    Seller’s EORI Number\n","example":"DEX1234567","type":"string"},"exportLicenseNumber":{"description":"    Seller’s export license number\n","example":"DEX1234567","type":"string"},"taxIdDetails":{"$ref":"#/components/schemas/TaxIdDetails"},"vatNumber":{"description":"    Seller’s VAT Number\n    Field Requirement: Conditional, provided on need basis / required if partyType is COMPANY\n","example":"1234456789345","type":"string"}},"type":"object"},"Item":{"description":"Describes an item present in a container","properties":{"asin":{"description":"Amazon Standard Identification Number","example":"B09V2V23G1","type":"string"},"fnSKU":{"description":"Amazon Fulfillment Network Stock Keeping Unit","example":"X0036OHX71","type":"string"},"merchantSKU":{"description":"Merchant Stock Keeping Unit","example":"ABC-12345-S-BL","type":"string"},"productCategory":{"description":"Item product category","example":"ELECTRONICS","type":"string"},"quantity":{"description":"Number of pieces","example":25,"format":"int32","type":"integer"}},"required":["asin","fnSKU","quantity"],"type":"object"},"MonetaryDetails":{"description":"This contains the breakdown of shipping cost and respective mapping with charge codes.","properties":{"chargeCodeToCharge":{"additionalProperties":{"$ref":"#/components/schemas/Currency"},"description":"    This contains mapping of charge code to the cost (currency). Sum of cost associated with all the charge codes should be equal to the total shipping cost (amazonCostEstimate). These charge codes needs to be shared with Amazon SEND team for their internal onboarding.\n    The key is of type String and would be like Map<String, Currency>.\n","type":"object"}},"required":["chargeCodeToCharge"],"type":"object"},"OceanContainer":{"description":"FCL container specifications for Ocean FCL shipments","properties":{"id":{"description":"Ocean Container Number (id)","example":1,"format":"int32","type":"integer"},"type":{"description":"FCL container size for Ocean shipping - the shipping container that will hold the cargo boxes","enum":["20FT","40FT","40HIGH"],"type":"string"}},"type":"object"},"PickupRequest":{"properties":{"fbaShipmentId":{"description":"    This is the Amazon's FBA program id for the shipment.\n","example":"FBA16M7R6FJ0","type":"string"},"requestId":{"description":"    This is the SEND requestId. This is the id against which the shipment was created through Confirm API. This id would remain same for the shipment during void API call.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"shippingServiceId":{"description":"    This is a unique id for the service offered by the carrier. This id will be created by SEND Team and will be shared with the carrier.\n","example":"send-ups_expedited-us","type":"string"}},"required":["fbaShipmentId","requestId","shippingServiceId"],"type":"object"},"PickupResponse":{"properties":{"pickupId":{"description":"    This is the pickup Id for the shipment.\n","example":"123456789","type":"string"},"pickupResult":{"$ref":"#/components/schemas/TaskResult"},"requestId":{"description":"    This is the SEND requestId. This is the id against which the shipment was created through Confirm API. This id would remain same for the shipment during void API call.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"}},"required":["pickupResult","requestId"],"type":"object"},"PickupSchedulerRequest":{"description":"    Ideally carrier should allow Amazon to call their Pickup API straight after sending a confirm response. If for some reason, carrier wants Amazon to schedule pickup API call at a specific time after shipment booking, they can use this field to tell Amazon or else set this as null.\n    Transportation Mode: Air\n","properties":{"eventDateTime":{"$ref":"#/components/schemas/EventDateTime"}},"required":["eventDateTime"],"type":"object"},"ShipmentCostLineItem":{"description":"cost breakdown for the shipment + its services","properties":{"cost":{"$ref":"#/components/schemas/Currency"},"type":{"description":"Enum name of the cost breakdown","enum":["BASE_SHIPPING"],"type":"string"}},"required":["cost","type"],"type":"object"},"ShipmentServiceOptions":{"description":"    Additional service options that will be required for calculating rates. This is an extensible object and can contain more fields that are required for rate calculation. CN out arcs\n","properties":{"productCategories":{"description":"categories of products that apply to the shipment","example":["Electronics","Food"],"items":{"description":"categories of products that apply to the shipment","example":"[\"Electronics\",\"Food\"]","type":"string"},"type":"array"},"sellerExportLicenseUsed":{"description":"True when seller selects to provide their own export license number (EOR) for customs clearance. false when carrier’s export license is used.","type":"boolean"},"sellerImportLicenseUsed":{"description":"True when seller selects to provide their own import license number (IOR) for customs clearance. false when carrier’s IOR is used","type":"boolean"}},"type":"object"},"TaskResult":{"description":"This represents the generic execution status of the task. It should contain the relevant details, even if the task is successful or failed.","properties":{"errorCode":{"description":"This contains the error code if the task was unsuccessful. Carrier needs to map their error to appropriate Amazon error code. This can take values from the error codes defined in the “Error Codes” table.","example":"null","type":"string"},"errorMessage":{"description":"Intuitive Description of errorMessage","example":"null","type":"string"},"isRetryable":{"description":"If the task was failed, then carrier needs to tell if it was because of a transient failure and Amazon could retry the same request. If the task was success, this need not be set.","type":"boolean"},"success":{"description":"true if task was successful else false","type":"boolean"}},"required":["success"],"type":"object"},"TaxIdDetails":{"description":"This field contains details of taxId , containing taxIdValue and taxIdType","properties":{"taxIdType":{"description":"    Enumerated string for whether the taxId belongs to a Company or an Individual\n","enum":["COMPANY","INDIVIDUAL"],"example":"INDIVIDUAL","type":"string"},"taxIdValue":{"description":"    taxIdentifier value\n","example":"DEX1234567","type":"string"}},"required":["taxIdType","taxIdValue"],"type":"object"},"VoidRequest":{"properties":{"fbaShipmentId":{"description":"    This is the Amazon's FBA program id for the shipment.\n","example":"FBA16M7R6FJ0","type":"string"},"merchantId":{"description":"    Amazon provided identifier to uniquely identify a Seller within a destination country\n    Field Requirement: Conditional, provided on need basis\n","example":"AaXtRaxWY134caRazRcZANwXWSEaxer","type":"string"},"requestId":{"description":"    This is the SEND requestId. This is the id against which the shipment was created through Confirm API. This id would remain same for the shipment during void API call.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"shippingServiceId":{"description":"    This is a unique id for the service offered by the carrier. This id will be created by SEND Team and will be shared with the carrier.\n","example":"send-ups_expedited-us","type":"string"}},"required":["fbaShipmentId","requestId","shippingServiceId"],"type":"object"},"VoidResponse":{"properties":{"requestId":{"description":"    This is the SEND requestId. This is the id against which the shipment was created through Confirm API. This id would remain same for the shipment during void API call.\n","example":"898831ad-2581-4b29-9a74-524fff062b2f","type":"string"},"voidResult":{"$ref":"#/components/schemas/TaskResult"}},"required":["requestId","voidResult"],"type":"object"},"Volume":{"description":"Represents the volume of an object. Mostly used in Ocean container","properties":{"unit":{"description":"Unit in which Volume is expressed. It depends on destination country.","example":"CBM","type":"string"},"value":{"description":"Value of Volume","example":27,"format":"double","type":"number"}},"required":["unit","value"],"type":"object"},"VolumeDiscountContext":{"description":"Volume discount context containing forecasted volume and the applicable period","properties":{"forecastedVolume":{"$ref":"#/components/schemas/Volume"},"fromPeriod":{"description":"Start date of the forecast period. Format: YYYY-MM-DD","example":"2024-01-01","type":"string"},"toPeriod":{"description":"End date of the forecast period. Format: YYYY-MM-DD","example":"2024-01-31","type":"string"}},"required":["forecastedVolume","fromPeriod","toPeriod"],"type":"object"},"Weight":{"description":"Represents a weight of an object, typically a container","properties":{"unit":{"description":"Unit in which Weight is expressed. It depends on destination country. It can take values “pounds” or “kilograms”.","example":"kilograms","type":"string"},"value":{"description":"Value of Weight.","example":20.8,"format":"double","type":"number"}},"required":["unit","value"],"type":"object"}}}}