Skip to main content
GET
/
v1
/
consumer
/
orders
/
{id}
/
receipt
Get Receipt For Order
curl --request GET \
  --url https://api.withflex.com/v1/consumer/orders/{id}/receipt \
  --header 'Authorization: Bearer <token>'
{
  "receipt": {
    "receipt_id": "obj_01EXAMPLE00000000000000000",
    "partner": "string",
    "checkout_session_id": "obj_01EXAMPLE00000000000000000",
    "invoice_id": "obj_01EXAMPLE00000000000000000",
    "customer": "string",
    "data": {
      "payment_methods": [],
      "line_items": [],
      "fees": [],
      "charges": []
    },
    "created_at": "2024-01-01T00:00:00Z",
    "test_mode": false
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.withflex.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Query Parameters

expand
string

Represents a list as a comma-separated string.

Example:

""

Response

Success

receipt
object
required
Example:
{
  "receipt_id": "obj_01EXAMPLE00000000000000000",
  "partner": "string",
  "checkout_session_id": "obj_01EXAMPLE00000000000000000",
  "invoice_id": "obj_01EXAMPLE00000000000000000",
  "customer": "string",
  "data": {
    "totals": {
      "amount_total": 0,
      "amount_subtotal": 0,
      "amount_tax": 0,
      "amount_shipping": 0,
      "amount_discount": 0,
      "amount_fee": 0
    },
    "payment_methods": [{}],
    "line_items": [{}],
    "fees": [{}],
    "charges": [{}],
    "shipping_details": {
      "shipping_address_id": "obj_01EXAMPLE00000000000000000",
      "line1": "123 Main St",
      "line2": "Suite 100",
      "city": "San Francisco",
      "state": "CA",
      "postal_code": "94107",
      "country": "US"
    }
  },
  "created_at": "2024-01-01T00:00:00Z",
  "test_mode": false
}