GET
/
v2
/
orders
/
{merchant_id}
curl --request GET \
  --url https://api.loyaltylion.com/v2/orders/{merchant_id}
{
  "cancellation_status": "cancelled",
  "merchant_id": "<string>",
  "payment_status": "not_paid",
  "refund_status": "not_refunded",
  "total_paid": "<string>",
  "total_shipping": "<string>",
  "total": "<string>",
  "merchant_created_at": "<string>",
  "merchant_updated_at": "<string>",
  "payments": [
    {
      "amount": "<string>",
      "created_at": "<string>",
      "gateway": "<string>"
    }
  ],
  "refunds": [
    {
      "amount": "<string>",
      "created_at": "<string>"
    }
  ]
}

Retrieve an order by its ID in your platform or ecommerce store.

Path Parameters

merchant_id
string
required

The ID of the order in your platform or ecommerce store

Minimum length: 1

Response

200
application/json
200
cancellation_status
enum<string>
required
Available options:
cancelled,
not_cancelled
merchant_id
string
required
payment_status
enum<string>
required
Available options:
not_paid,
partially_paid,
paid
refund_status
enum<string>
required
Available options:
not_refunded,
partially_refunded,
refunded
total_paid
string
required
total_shipping
string
required
total
string
required
merchant_created_at
string
required
merchant_updated_at
string
required
payments
object[]
required
refunds
object[]
required