Orders

Get order by reference number or ID

Changed on

Get an order by reference number or order ID. Returns full data for authenticated owners, limited data for guests.

get/orders/{reference_number}/reference

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/orders/{reference_number}/reference
  • Auth: one of:
    • HTTP bearer
    • none

Path parameters

reference_numberstring required

Reference number or order ID

Response

Order retrieved successfully

OR

Example response

{
  "total": 55.95,
  "subtotal": 193.65,
  "processing_fee": 878.19,
  "discount": 166.55,
  "coupon": "AMAZING50",
  "client_secret": "cs_test_a1b2c3d4e5f6_secret_YvoWs3BcRC8REQSwuDDe8yg6b",
  "payment_status": "NOT_STARTED",
  "status": "CREATED",
  "reference_number": "PC12345678",
  "line_items": [
    {
      "quantity": 1,
      "price": 930.29,
      "source": "opportunity_card"
    }
  ]
}

Changes

    • info

      added subschema #1 subschema #2 to the response body anyOf list for the response status

    • info

      removed subschema #1 subschema #2 from the response body anyOf list for the response status