Orders

Check an order checkout before paying

Read-only. Reports whether the checkout session the page has mounted is still the current session of the order, with the total and credits on the order.

get/teams/{slug}/orders/{order_id}/checkout/state

Request

  • Base URL: https://api.presscart.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.presscart.com/teams/{slug}/orders/{order_id}/checkout/state
  • Auth: HTTP bearer

Path parameters

slugstring required
Example:team-a
order_idstring uuid required
Example:0b0f4d0e-5a51-4a0a-9a39-3a5a4c1f2b6d

Query parameters

session_idstring required
Example:cs_test_a1b2c3d4e5f6g7h8i9j0

Response

Checkout state

session_idstring required
currentboolean required

True only when the mounted session is the order current session

totalnumber required

The card total on the order, in dollars

credits_appliednumber required

Credits held for the order, in dollars

Example response

{
  "session_id": "cs_test_a1b2c3d4e5f6g7h8i9j0",
  "total": 721,
  "credits_applied": 300
}

Changes

No recorded changes to this operation across all 2 revisions of this API.