Passer au contenu principal
GET
/
v2
/
order
/
{order_uuid}
Get order details
curl --request GET \
  --url https://sandbox.gateway.sezzle.com/v2/order/{order_uuid} \
  --header 'Authorization: <api-key>'
{
  "uuid": "12a34bc5-6de7-890f-g123-4hi1238jk902",
  "links": [
    {
      "href": "https://gateway.sezzle.com/v2/order/12a34bc5-6de7-890f-g123-4hi1238jk902",
      "method": "GET",
      "rel": "self"
    },
    {
      "href": "https://gateway.sezzle.com/v2/order/12a34bc5-6de7-890f-g123-4hi1238jk902",
      "method": "PATCH",
      "rel": "self"
    },
    {
      "href": "https://gateway.sezzle.com/v2/order/12a34bc5-6de7-890f-g123-4hi1238jk902/release",
      "method": "POST",
      "rel": "release"
    },
    {
      "href": "https://gateway.sezzle.com/v2/order/12a34bc5-6de7-890f-g123-4hi1238jk902/capture",
      "method": "POST",
      "rel": "capture"
    },
    {
      "href": "https://gateway.sezzle.com/v2/order/12a34bc5-6de7-890f-g123-4hi1238jk902/refund",
      "method": "POST",
      "rel": "refund"
    }
  ],
  "intent": "AUTH",
  "reference_id": "ord_12345",
  "description": "sezzle-store - #12749253509255",
  "checkout_expiration": "2022-03-30T21:59:17.000Z",
  "checkout_status": "active",
  "metadata": {
    "location_id": "123",
    "store_name": "Downtown Minneapolis",
    "store_manager": "Jane Doe"
  },
  "order_amount": {
    "amount_in_cents": 10000,
    "currency": "USD"
  },
  "items": [
    {
      "name": "widget",
      "sku": "sku123456",
      "quantity": 1,
      "price": {
        "amount_in_cents": 1000,
        "currency": "USD"
      }
    }
  ],
  "tax_amount": {
    "amount_in_cents": 500,
    "currency": "USD"
  },
  "shipping_amount": {
    "amount_in_cents": 1000,
    "currency": "USD"
  },
  "shipping_method": {
    "name": "Standard Shipping",
    "description": "4-5 days standard shipping method"
  },
  "is_upcharge": false,
  "upcharges": [
    {
      "uuid": "9f8e7d6c-5b4a-3210-9876-54321fedcba0",
      "amount": {
        "amount_in_cents": 500,
        "currency": "USD"
      }
    }
  ],
  "customer": {
    "email": "john.doe@sezzle.com",
    "first_name": "John",
    "last_name": "Doe",
    "phone": "5555045294",
    "billing_address": {
      "name": "John Doe",
      "street": "123 Queen Street West",
      "street2": "Unit 104",
      "city": "Toronto",
      "state": "ON",
      "postal_code": "M5H 2M9",
      "country_code": "CA",
      "phone": "5555045294"
    },
    "shipping_address": {
      "name": "John Doe,",
      "street": "123 Queen Street West,",
      "street2": "Unit 104,",
      "city": "Toronto,",
      "state": "ON,",
      "postal_code": "M5H 2M9",
      "country_code": "CA",
      "phone": "5555045294"
    }
  },
  "authorization": {
    "authorization_amount": {
      "amount_in_cents": 10000,
      "currency": "USD"
    },
    "authorization_amount_in_user_currency": {
      "amount_in_cents": 13700,
      "currency": "CAD"
    },
    "approved": true,
    "expiration": "2020-04-23T16:13:44Z",
    "financing_option": "4-pay-biweekly",
    "sezzle_order_id": "order-id-in-merchant-dashboard",
    "releases": [
      {
        "uuid": "4b4d217c-18f1-4bfb-996e-767470c04661",
        "amount": {
          "amount_in_cents": 3000,
          "currency": "USD"
        }
      }
    ],
    "captures": [
      {
        "uuid": "f4415e94-e562-47cc-94f3-92279f27dc20",
        "amount": {
          "amount_in_cents": 7000,
          "currency": "USD"
        }
      }
    ],
    "refunds": [
      {
        "uuid": "83162d2f-d5f1-43ad-91ed-e8231920ce6d",
        "amount": {
          "amount_in_cents": 1000,
          "currency": "USD"
        }
      }
    ]
  }
}

Autorisations

Authorization
string
header
requis

The authentication token generated from providing API Keys to Sezzle Gateway

Paramètres de chemin

order_uuid
string
requis

The Order UUID to retrieve (order.uuid from session response)

Réponse

Successful Operation

uuid
string

The unique identifier for this response

Available API links prefilled with UUID with accompanying method

intent
enum<string>
  • Use CAPTURE if payment should be captured immediately upon shopper authorization
  • Use AUTH if there is any post-authorization validation needed prior to capture, such as inventory validation or regulatory requirements, or if merchant policy is to charge the payment method at time of shipment
    • Submit a capture request via the API or your Merchant Dashboard before the authorization expires.
    • The authorization expiration window can be set from 30 minutes up to 7 days in your Merchant Dashboard Settings.
  • If not specified, the value will default to CAPTURE
Options disponibles:
AUTH,
CAPTURE
reference_id
string

The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))

order_amount
object

A Price object containing the total amount in cents of the order, which must be at least 100 which is $1.00. Please note your merchant configuration might have a higher minimum.

description
string

Your description for this order

metadata
object

Object for any custom data you want to submit with the checkout. You are not limited to the key-value pairs shown in the example, and you may use any key-value pairs you like

items
object[]

The items being purchased

checkout_expiration
string<date-time>

The date until which the shopper can access the checkout_url generated in Create Session request to complete the order. ISO 8601 date/time format

checkout_status
enum<string>

The state of the checkout, not an indication of capture status. Active: Session created, pending shopper order completion Completed: Shopper has completed the order Deleted: Session expired or deleted, or funds released Denied: Order total exceeds the user's approved Sezzle spending power. Note: If order exceeds Sezzle merchant order limit, the status will not be denied.

Options disponibles:
active,
complete,
denied,
deleted
tax_amount
object

The taxes applied to this order, amount is included in the order total, only available if included in session request or obtained for express checkout

shipping_amount
object

The shipping fees applied to this order, amount is included in the order total, only available if included in session request or obtained for express checkout

shipping_method
object

Shipping method would be returned only for express checkout once the shopper selects from the available options.

is_upcharge
boolean

True if this order was created via the Upcharge endpoint to capture an additional amount on a parent order.

parent_order_uuid
string

When is_upcharge is true, the UUID of the original (parent) order that this upcharge was applied to.

upcharges
object[]

When this order is a parent that has had upcharges applied, lists each upcharge order's UUID and amount. Use the listed UUIDs with other Order API endpoints (Get Order, Capture, Refund, etc.).

customer
object

The customer details on the order, amended with user name, email, and phone from Sezzle account

authorization
object

The authorization details for the order