Bulk payment for shipments
The table may consist of maximum 100 elements.
|The table may consist of maximum 100 elements.|
In response, the server returns the status of 204.
After choosing the offer, other not selected offers are removed. The application may be used to make bulk payments for shipments only when all the data are entered correctly (shipment numbers belong to the organization, ID of offers are correctly assigned to the shipment, they are already paid, etc.)
Caution! Asynchronous operation.
Since the purchase of shipment is asynchronous, the server will return details of the shipment, not taking into account the changes caused by the purchase (status change, assigning transport number), as this information will only be available after a certain time.
To obtain information about the successful purchase of the shipment, define in the organization settings the url address for sending information on shipment_confirmed. This makes ShipX application to send the following information to the provided address:
List of errors that may occur when paying for shipment:
resource_not_found- may occur when a specific shipment does not exist or when the user has no access to it,
offer_unavailable- occurs when an attempt is made to pay for the offer with status other than
transaction_failed- may occur when attempt to pay for shipment failed.