Overview
This endpoint can be used to finalize a checkout session and pay for the shipments. Endpoint:/api/v1/checkout
Method: POST
A maximum of 10 shipments can be included in a single checkout session.
You must first use the
GET endpoint so that the price may be calculated for each shipment. If you attempt to finalize a shipment that does not have a price, then you will receive an error.Request
An array of up to
10 shipment IDs to be included in the finalized checkout session.Response (204)
If the checkout session is successfully stored, the API will return a204 No Content status code.
The response will not contain any content.
Response (403)
If the organization does not have a valid payment method to charge, then the API will return a403 Forbidden status code.
Response (402)
If the checkout session was not successfully stored because the payment provider declined the organization’s card, then the API will return a402 Payment Required status code.
Receiving this response will automatically invalidate your payment method. You will need to address this via the ArtPort website before you can make further payment attempts.
The internal status code of the error.
A human-readable message explaining the error.
Response (409)
If the checkout session was not successfully created because payment failed, then the API will return a409 Conflict status code.
In most cases, this is a temporary error and you can simply retry the request. It is recommended that you wait a minute or so before retrying. This increases the chance that your request will be processed successfully.
The internal status code of the error.
A human-readable message explaining the error.