openapi: 3.1.0
info:
  title: Sezzle API v2
  description: This Sezzle API is for merchants who want to accept Sezzle as a payment option
  termsOfService: 'https://legal.sezzle.com'
  version: 2.0.0
  x-logo:
    url: 'https://media.sezzle.com/branding/2.0/png/Logo_WhiteWordmark_500x126.png'
    backgroundColor: '#392558'
servers:
  - url: https://sandbox.gateway.sezzle.com
    description: development server, usa, ca
  - url: https://gateway.sezzle.com
    description: production server, usa, ca
security:
  - Bearer: []
externalDocs:
   description: Sezzle API guides and tutorials
   url: https://docs.sezzle.com/sezzle-integration
paths:
  /v2/authentication:
    post:
      operationId: HandleAuthentication
      description: Generate authentication token from your Sezzle merchant API keys for use in the header of all other API requests.
      summary: Get a bearer authentication token
      tags:
        - Authentication
      requestBody:
        description: |
          The API keys used in this request should come from the same dashboard environment as the request URL.
          e.g., when testing in sandbox.gateway.sezzle.com, get API keys from sandbox.dashboard.sezzle.com
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthenticationRequest'
            example:
              private_key: sz_pr_...
              public_key: sz_pub_...
      responses:
        201:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationResponse'
              example:
                expiration_date: 2017-01-01T01:30:25.388940303Z
                merchant_uuid: merchant1234567890
                token: example-token
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: missing public_key
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
      security: []
  /v2/session/{session_uuid}:
    get:
      operationId: HandleGetSession
      description: |
        Get session details.
        The blocks returned mirror what the session was created with: an order session returns order, and a standalone tokenization session returns tokenize with its approval_url and no order block.
      summary: Get session status
      tags:
        - Session
      parameters:
        - name: session_uuid
          in: path
          description: The Session UUID to receive (from Create Session response)
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                    description: |
                      **Note:** This example response is a multi-purpose session (create order and tokenize)
                  - type: object
                    properties:
                      order:
                        $ref: '#/components/schemas/OrderResponse'
                      tokenize:
                        allOf:
                          - $ref: '#/components/schemas/SessionTokenResponse'
                          - type: object
                            properties:
                              links:
                                type: array
                                items:
                                  $ref: '#/components/schemas/Link'
              example:
                uuid: fadbc642-05a4-4e38-9e74-80e325623af9
                links: [
                  {
                    href: 'https://gateway.sezzle.com/v2/session/fadbc642-05a4-4e38-9e74-80e325623af9',
                    method: GET,
                    rel: self
                  }
                ]
                order:
                  uuid: 12a34bc5-6de7-890f-g123-4hi1238jk902
                  intent: CAPTURE
                  checkout_url: 'https://checkout.sezzle.com/?id=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
                    }
                  ]
                tokenize:
                  token: 7ec98824-67cc-469c-86ab-f9e047f9cf1a
                  expiration: 2020-04-27T14:46:59Z
                  links: [
                    {
                      href: 'https://gateway.sezzle.com/v2/token/7ec98824-67cc-469c-86ab-f9e047f9cf1a/session',
                      method: GET,
                      rel: token
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: Invalid SessionUUID
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/session:
    post:
      operationId: HandleNewSession
      description: |
        Initiate a Sezzle session with shopper order details, redirect links, and capture and tokenization settings.
        A session must carry an order, tokenize a customer, or both. Omit the order and set customer.tokenize to true for standalone tokenization, which returns tokenize.approval_url instead of an order.
      summary: Create a new session
      tags:
        - Session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SessionRequest'
            example:
              cancel_url:
                href: https://example.com/cart
                method: GET
              complete_url:
                href: https://example.com/ord_12345/complete
                method: GET
              customer:
                email: john.doe@sezzle.com
                first_name: John
                last_name: Doe
                phone: '5555045294'
                dob: '1990-02-25'
                billing_address:
                  name: John Doe
                  street: 123 W Lake St
                  street2: Unit 104
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                  phone_number: '5555045294'
                shipping_address:
                  name: John Doe
                  street: 123 W Lake St
                  street2: Unit 104
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                  phone_number: '5555045294'
              order:
                intent: CAPTURE
                reference_id: ord_12345
                description: 'sezzle-store - #12749253509255'
                items: [
                  {
                    name: widget,
                    sku: sku123456,
                    quantity: 1,
                    price: {
                      amount_in_cents: 1000,
                      currency: USD
                    }
                  }
                ]
                discounts: [
                  {
                    name: 20% off,
                    amount: {
                      amount_in_cents: 1000,
                      currency: USD
                    }
                  }
                ]
                metadata:
                  location_id: '123'
                  store_name: Downtown Minneapolis
                  store_manager: Jane Doe
                shipping_amount:
                  amount_in_cents: 1000
                  currency: USD
                tax_amount:
                  amount_in_cents: 1000
                  currency: USD
                order_amount:
                  amount_in_cents: 10000
                  currency: USD
      responses:
        201:
          description: Successful Operation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                  - type: object
                    properties:
                      order:
                        description: Order metadata required for checkout
                        $ref: '#/components/schemas/SessionOrderResponse'
                      tokenize:
                        $ref: '#/components/schemas/SessionTokenResponse'
                        description: This is included in the response when starting a customer tokenization session.
              example:
                uuid: fadbc642-05a4-4e38-9e74-80e325623af9
                links: [
                  {
                    href: 'https://gateway.sezzle.com/v2/session/fadbc642-05a4-4e38-9e74-80e325623af9',
                    method: GET,
                    rel: self
                  }
                ]
                order:
                  uuid: 12a34bc5-6de7-890f-g123-4hi1238jk902
                  checkout_url: 'https://checkout.sezzle.com/?id=12a34bc5-6de7-890f-g123-4hi1238jk902'
                  intent: CAPTURE
                  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
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad request
            message: cannot unmarshal string into order.items.quantity
            location: order.items.quantity
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/session/card:
    post:
      operationId: HandleNewCardSessionV2
      description: Creates a Sezzle virtual card session. A card session represents the issuance of a Sezzle virtual card to a Sezzle user and/or the agreement of a Sezzle user to use the virtual card as payment. Use the card session endpoints to create and update a card session.
      summary: Create card session
      tags:
        - Virtual
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CardSessionRequest'
            example:
              origin: https://example.com
              mode: iframe
              merchant_reference_id: merchant-cart-id-max-255
              amount_in_cents: 1000
              currency: USD
              card_response_format: token
              customer:
                  email: john.doe@example.com
                  first_name: John
                  last_name: Doe
                  phone: '6125551234'
                  billing_address:
                      street: 123 W Lake St
                      street2: Unit 104
                      city: Minneapolis
                      state: MN
                      postal_code: '55408'
                      country_code: US
              items: [
                  {
                      name: Blue tee,
                      sku: sku123456,
                      quantity: 1,
                      price: {
                          amount_in_cents: 1000,
                          currency: USD
                      }
                  }
              ]
      responses:
        201:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: 'The unique identifier for this session'
                  dashboard_url:
                    type: string
                    description: The dashboard_url is a URL which the customer should be redirected to. Upon accepting the agreements there will be a postMessage returned for the payload of the card data.
              example:
                uuid: fadbc642-05a4-4e38-9e74-80e325623af9
                dashboard_url: 'https://dashboard.sezzle.com/example?id=0001'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/session/card/token/{token}:
    get:
      tags:
        - Virtual
      description: You can use this endpoint to request card data with the checkout card token. The card token is temporary and only available for a limited time. This endpoint is only needed when a card session is created with a card response format of token.
      summary: Get VC data by token
      operationId: cardDataByToken
      parameters:
        - name: token
          in: path
          description: The session token to get (from Create Card Session response)
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  cvv_number:
                    type: string
                    description: Sezzle Virtual Card security code
                  expiration_date:
                    type: string
                    format: date-time
                    description: The expiration date of the virtual card
                  first_name:
                    type: string
                    description: Customer's first name
                  last_name:
                    type: string
                    description: Customer's last name
                  pan:
                    type: string
                    description: The 16-digit virtual card number
                example:
                  cvv_number: '123'
                  expiration_date: '0228'
                  first_name: John
                  last_name: Doe
                  pan: '1234'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/session/{session_id}/card:
    patch:
      operationId: HandleUpdateCardSession
      description: After the virtual card transaction for this session is successfully completed and a Sezzle order is created, call this endpoint to assign your order ID to the (external) reference ID of the Sezzle order.
      summary: Update card session
      tags:
        - Virtual
      parameters:
        - name: session_id
          in: path
          description: The Session UUID to update (from Create Card Session response)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - order_id
              properties:
                order_id:
                  type: string
                  description: Your order ID (or number)
            example:
              order_id: merchant_order_number
      responses:
        204:
          $ref: '#/components/responses/StatusNoContentV2'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}:
    get:
      operationId: HandleGetOrderDetails
      description: |
        Get details and check the status of an existing order.\
        Can be performed any time after session creation
      summary: Get order details
      tags:
        - Order
      parameters:
        - name: order_uuid
          in: path
          description: The Order UUID to retrieve (`order.uuid` from session response)
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                  - $ref: '#/components/schemas/OrderBasic'
                  - $ref: '#/components/schemas/OrderDetail'
                  - $ref: '#/components/schemas/OrderGet'
                  - type: object
                    properties:
                      customer:
                        description: The customer details on the order, amended with user name, email, and phone from Sezzle account
                        allOf:
                          - $ref: '#/components/schemas/Customer'
                          - type: object
                            properties:
                              shipping_address:
                                description: The customer's shipping address
                                $ref: '#/components/schemas/AddressV2'
                  - type: object
                    properties:
                      authorization:
                        allOf:
                          - $ref: '#/components/schemas/Authorization'
                          - $ref: '#/components/schemas/AuthorizationDetails'
              example:
                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:17Z
                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
                    }
                  }
                ]
                dispute:
                  id: 42
                  type: No Product Or Service
                  status: Awaiting Merchant Response
                  amount:
                    amount_in_cents: 10000
                    currency: USD
                  opened_at: '2026-06-16T14:03:22Z'
                  due_date: '2026-06-20'
                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' # or phone_number?
                  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' # or phone_number?
                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
                      }
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: Invalid Order UUID
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
    patch:
      operationId: HandleUpdateOrderDetails
      description: Once transaction is completed, update Sezzle order with merchant reference ID
      summary: Update order
      tags:
        - Order
      parameters:
        - name: order_uuid
          in: path
          description: The Order UUID to update (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - reference_id
              properties:
                reference_id:
                  type: string
                  description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
            example:
              reference_id: ord_9876
      responses:
        204:
          $ref: '#/components/responses/StatusNoContentV2'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: unmarshal_error
            message: cannot unmarshal number into reference_id
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid_authorization
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/capture:
    post:
      operationId: HandleCaptureAmountByOrder
      description: |
        Capture an amount by order, either in full or partial capture, in cases when the order items are shipped separately.\
        Can be performed after shopper has authorized the transaction by completing checkout with Sezzle, but before authorization expires
      summary: Capture amount by order
      tags:
        - Order
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: order_uuid
          in: path
          description: The Order UUID to capture (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaptureRequest'
            example:
              capture_amount:
                amount_in_cents: 5000
                currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: The uuid returned from this operation is the capture transaction uuid, but there are no endpoints that use this value. You may retrieve an order's capture transactions using the Get an order endpoint.
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: invalid
            message: Amount must be greater than $0.00
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: already_completed
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/reauthorize:
    post:
      operationId: HandleReauthorizeAmountByOrder
      description: |
        Reauthorize an amount by order whose initial authorization has expired before payment could be captured. Any attempts to reauthorize before the authorization expires will fail.\
        Can be performed after shopper has authorized the transaction by completing checkout with Sezzle
      summary: Reauthorize amount by order
      tags:
        - Order
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: order_uuid
          in: path
          description: The Order UUID to reauthorize (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        description: The amount to be reauthorized
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReauthorizeRequest'
            example:
              amount_in_cents: 5000
              currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                  - $ref: '#/components/schemas/OrderBasic'
                  - type: object
                    properties:
                      authorization:
                        $ref: '#/components/schemas/Authorization'
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
                links: [
                    {
                        href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8',
                        method: GET,
                        rel: self
                    }
                ]
                intent: AUTH
                reference_id: original_order_reference_id
                order_amount: {
                    amount_in_cents: 5000,
                    currency: USD
                }
                authorization: {
                    authorization_amount: {
                        amount_in_cents: 5000,
                        currency: USD
                    },
                    approved: true,
                    expiration: '2022-04-23T16:13:44Z'
                }
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: invalid
            message: Reauthorization window has expired
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: invalid
            message: Checkout not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid_installment_id
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/refund:
    post:
      operationId: HandleRefundAmountByOrder
      description: |
        Refund an amount by order. An example use-case is when an order was captured but the customer returned item(s) that requires them to be refunded.\
        Can be performed after order capture.
      summary: Refund amount by order
      tags:
        - Order
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: order_uuid
          in: path
          description: The Order UUID to refund (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        description: The amount to be refunded
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RefundRequest'
            example:
              amount_in_cents: 5000
              currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: The uuid returned from this operation is the refund transaction uuid, but there are no endpoints that use this value. You may retrieve an order's refund transactions using the Get an order endpoint.
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid_merchant
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/release:
    post:
      operationId: HandleReleaseAmountByOrder
      description: |
        Release an amount by order. An example use-case is when an order is unable to be fully fulfilled and part of the authorization needs to be released. Then a capture can be called for the remaining amount.\
        Can be performed after shopper has authorized the transaction by completing checkout with Sezzle but before the payment is fully captured.
      summary: Release amount by order
      tags:
        - Order
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: order_uuid
          in: path
          description: The Order UUID to release (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        description: The amount to be released
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReleaseRequest'
            example:
              amount_in_cents: 5000
              currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: The uuid returned from this operation is the release transaction uuid, but there are no endpoints that use this value. You may retrieve an order’s release transactions using the Get an order endpoint.
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: already_completed
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/upcharge:
    post:
      operationId: HandleUpchargeAmountByOrder
      description: |
        Use this endpoint to upcharge an amount on an existing order. Can be performed after payment authorization.
        Upon success, a new separate order is created for the upcharge amount only. The original order is not released and remains in its current state.
        The upcharge amount is charged to the shopper as a single payment. The cumulative total of all upcharges on a given order must not exceed 15% of the original order amount.
        The currency of the upcharge must match the currency of the original order.
        The relationship between the upcharge order and the original order is queryable via Get Order: the upcharge order returns `is_upcharge: true` and `parent_order_uuid`, and the original order returns an `upcharges` array listing each upcharge.
      summary: Upcharge amount by order
      tags:
        - Order
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: order_uuid
          in: path
          description: The Order UUID to upcharge (`order.uuid` from session response)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                intent:
                  $ref: '#/components/schemas/Intent'
                upcharge_amount:
                  description: The amount to upcharge. The cumulative total of all upcharges on a given order must not exceed 15% of the original order amount. Currency must match the original order.
                  $ref: '#/components/schemas/Price'
              required:
                - intent
                - upcharge_amount
            example:
              intent: AUTH
              upcharge_amount:
                amount_in_cents: 5000
                currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                properties:
                  uuid:
                    type: string
                    description: The UUID of the new upcharge order. This UUID can be used with other Order API endpoints (e.g., capture, refund).
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/order/{order_uuid}/checkout:
    patch:
      operationId: HandleUpdateOrderCheckout
      description: |
        Send the shipping options and final amounts for an Express Checkout order after the shopper picks a shipping address.
        Only works while the checkout is open (see `409`).
      summary: Update checkout by order
      tags:
        - Order
      parameters:
        - name: order_uuid
          in: path
          description: The Order UUID to update (order.uuid from session response)
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - currency_code
                - address_uuid
                - shipping_options
              properties:
                currency_code:
                  type: string
                  description: The 3 character currency code as defined by ISO 4217
                address_uuid:
                  type: string
                  description: The UUID associated with the customer's shipping address
                shipping_options:
                  type: array
                  description: The shipping options for the order
                  items:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The name of the shipping option
                      description:
                        type: string
                        description: The description of the shipping option
                      shipping_amount_in_cents:
                        type: number
                        description: The shipping amount in cents for the order
                      tax_amount_in_cents:
                        type: number
                        description: The tax amount in cents for the order
                      final_order_amount_in_cents:
                        type: number
                        description: The final total amount in cents for the order including the shipping, tax and cart amount. etc
            example:
              currency_code: USD
              address_uuid: some-uuid-1234
              shipping_options: [
                {
                  name: Standard Shipping,
                  description: 3-5 business days,
                  shipping_amount_in_cents: 500,
                  tax_amount_in_cents: 500,
                  final_order_amount_in_cents: 20000
                },
                {
                  name: Express Shipping,
                  description: 1-2 business days,
                  shipping_amount_in_cents: 1000,
                  tax_amount_in_cents: 1000,
                  final_order_amount_in_cents: 21000
                }
              ]
      responses:
        '200':
          description: The checkout was updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  order_amount_in_cents:
                    type: integer
                    description: The order amount in cents after the update. Reflects the shipping option only when exactly one is sent. With several, it stays at the cart amount until the shopper picks one
                  currency_code:
                    type: string
                    description: The 3 character currency code as defined by ISO 4217
                  shipping_amount_in_cents:
                    type: integer
                    description: The shipping amount in cents. Omitted when zero, or when several shipping options were sent and the shopper hasn't picked one yet
                  tax_amount_in_cents:
                    type: integer
                    description: The tax amount in cents. Omitted when zero, or when several shipping options were sent and the shopper hasn't picked one yet
                  shipping_address:
                    $ref: '#/components/schemas/AddressV2'
                    description: The shopper's shipping address for the checkout
              example:
                order_amount_in_cents: 19000
                currency_code: USD
                shipping_address:
                  name: John Doe
                  phone: '5555045294'
                  street: 123 W Lake St
                  street2: Unit 104
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
        '400':
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        '401':
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        '404':
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        '409':
          description: |
            The checkout can no longer be updated because it has expired, been authorized, or is being completed.
            The message ends with the reason: `checkout-expired`, `checkout-authorized`, or `checkout-completion-in-progress`.
            Don't retry the request. To try again, create a new session.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ErrorV2'
              example:
                - code: invalid
                  message: 'checkout is immutable and cannot be updated: checkout-expired'
        '422':
          description: |
            Unable to process the request entity:

            - `missing`, `shipping options are required`: `shipping_options` is empty.
            - `invalid`, `checkout already completed`: Sezzle has already recorded the order as completed. Don't retry the request.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ErrorV2'
              example:
                - code: invalid
                  message: checkout already completed
                  debug_uuid: 7c5d7f0e-2b1a-4c47-9a4e-0d2f6f1b8e3a
    delete:
      operationId: HandleDeleteOrderCheckout
      description: Delete an active (incomplete) checkout for an order. An example use-case is when a customer has been redirected to Sezzle but the order is cancelled in the ecommerce platform, call this endpoint to prevent the customer from completing the Sezzle checkout.
      summary: Delete checkout by order
      tags:
        - Order
      parameters:
        - name: order_uuid
          in: path
          description: The Order UUID to delete (`order.uuid` from session response)
          required: true
          schema:
            type: string
      responses:
        204:
          $ref: '#/components/responses/StatusNoContentV2'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/webhooks:
    post:
      operationId: HandleCreateWebhooks
      description: This endpoint can be used to subscribe to webhooks
      summary: Create webhooks
      tags:
        - Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Webhook'
            example:
              url: 'https://example.com/webhooks'
              events: [
                customer.tokenized
              ]
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
              example:
                uuid: 747cf28a-bb5c-46a8-a288-d9b006fd6113
                links:
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: create
                    method: POST
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: list
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: PATCH
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: DELETE
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
    get:
      operationId: HandleListWebhooks
      description: Get a list of webhooks you are subscribed to
      summary: List webhooks
      tags:
        - Webhooks
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WebhookResponse'
                example: [
                  {
                    uuid: 747cf28a-bb5c-46a8-a288-d9b006fd6113,
                    links: [
                      {
                        href: 'https://sandbox.gateway.sezzle.com/v2/webhooks',
                        rel: create,
                        method: POST
                      },
                      {
                        href: 'https://sandbox.gateway.sezzle.com/v2/webhooks',
                        rel: list,
                        method: GET
                      },
                      {
                        href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113',
                        rel: self,
                        method: GET
                      },
                      {
                        href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113',
                        rel: self,
                        method: PATCH
                      },
                      {
                        href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113',
                        rel: self,
                        method: DELETE
                      }
                    ],
                    url: 'https://example.com/webhooks',
                    events: [customer.tokenized]
                  }
                ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/webhooks/{webhooks_uuid}:
    get:
      operationId: HandleGetWebhook
      description: Get a single webhook you are subscribed to by its UUID
      summary: Get webhook
      tags:
        - Webhooks
      parameters:
        - name: webhooks_uuid
          in: path
          description: The webhook UUID to retrieve
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookResponse'
              example:
                uuid: 747cf28a-bb5c-46a8-a288-d9b006fd6113
                links:
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: create
                    method: POST
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: list
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: PATCH
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: DELETE
                url: 'https://example.com/webhooks'
                events: [customer.tokenized]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: webhook not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
    patch:
      operationId: HandleUpdateWebhook
      description: Update an existing webhook configuration (URL and/or events)
      summary: Update webhook
      tags:
        - Webhooks
      parameters:
        - name: webhooks_uuid
          in: path
          description: The webhook UUID to be updated
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Webhook'
            example:
              url: 'https://example.com/webhooks-updated'
              events: [
                order.captured,
                order.refunded
              ]
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
              example:
                uuid: 747cf28a-bb5c-46a8-a288-d9b006fd6113
                links:
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: create
                    method: POST
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks'
                    rel: list
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: GET
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: PATCH
                  - href: 'https://sandbox.gateway.sezzle.com/v2/webhooks/747cf28a-bb5c-46a8-a288-d9b006fd6113'
                    rel: self
                    method: DELETE
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: webhook not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: duplicate
            message: Duplicate webhooks url
    delete:
      operationId: HandleDeleteWebhooks
      description: Delete webhooks to unsubscribe
      summary: Delete webhooks
      tags:
        - Webhooks
      parameters:
        - name: webhooks_uuid
          in: path
          description: The webhook UUID to be deleted
          required: true
          schema:
            type: string
      responses:
        '204':
          $ref: '#/components/responses/StatusNoContentV2'
        '400':
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/webhooks/test:
    post:
      operationId: HandleTestWebhooks
      description: Trigger a test event to mimic a webhook event at a given URL.
      summary: Trigger a test webhook
      tags:
        - Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookTestRequest'
            example:
              event: order.authorized
              url: 'https://example.com/webhooks'
      responses:
        201:
          $ref: '#/components/responses/StatusCreatedV2'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/interest/activity:
    get:
      operationId: HandleInterestAccountActivityRequest
      description: If you are enrolled in the interest account program, get the current activity on the interest account.
      summary: Interest Account Activity
      tags:
        - Reports
      parameters:
        - name: start-date
          in: query
          description: The start date for the report. Must be in yyyy-mm-dd format.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
        - name: end-date
          in: query
          description: The end date for the report. Must be in yyyy-mm-dd format. If omitted, will default to the current date.
          schema:
            type: string
            format: yyyy-mm-dd
        - name: offset
          in: query
          description: Number of records to skip. Each response returns up to 20 records, so use 0 for the first 20, 20 for the next 20, and so on. Defaults to 0.
          schema:
            type: integer
            format: int32
        - name: currency-code
          in: query
          description: The ISO-4217 currency code of the interest account. If omitted, will default to USD.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            text/csv:
              schema:
                type: string
                example: >
                  type,event_date,interest_account_change_amount,interest_account_balance_after_change
                  INTEREST_PAYOUT,2019-12-21T19:10:00Z,122.8718,5101.4676
                  INTEREST_WITHDRAWAL,2019-12-21T19:20:00Z,-26.1000,5075.3676
                  INTEREST_ACCRUAL,2019-12-21T19:15:00Z,1.0702,5182.3922
                  INTEREST_ACCRUAL,2019-12-22T19:15:00Z,1.0702,5183.4624
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/interest/balance:
    get:
      operationId: HandleInterestAccountBalanceRequest
      description: If you are enrolled in the interest account program, get the current balance on the interest account. Fractions of cents are tracked to properly calculate daily interest accrual even if the interest balance is low.
      summary: Interest Account Balance
      tags:
        - Reports
      parameters:
        - name: currency-code
          in: query
          description: The ISO-4217 currency code of the interest account.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
              application/json:
                schema:
                  type: object
                  properties:
                    interest_balance:
                      type: number
                      description: The available interest balance on your account
                example:
                  interest_balance: 5183.4624
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/settlements/summaries:
    get:
      operationId: HandleSettlementListRequest
      description: Get a summarized list of settlement payouts.
      summary: Settlement Summaries
      tags:
        - Reports
      parameters:
        - name: start-date
          in: query
          description: The UTC start date for the report. Must be in yyyy-mm-dd format.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
        - name: end-date
          in: query
          description: The UTC end date for the report. Must be in yyyy-mm-dd format. If omitted, will default to the current date.
          schema:
            type: string
            format: yyyy-mm-dd
        - name: offset
          in: query
          description: Number of records to skip. Each response returns up to 30 records, so use 0 for the first 30, 30 for the next 30, and so on. Defaults to 0.
          schema:
            type: integer
            format: int32
        - name: currency-code
          in: query
          description: The ISO-4217 currency code selected by users at checkout. If omitted, will default to USD.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
              application/json:
                schema:
                  type: array
                  items:
                    $ref: '#/components/schemas/WithdrawalSummary'
                example:
                  [
                    {
                      uuid: b7916fbe-f30a-4435-b411-124634287a8ca,
                      payout_currency: USD,
                      payout_date: '2019-12-09T15:52:33Z',
                      net_settlement_amount: 93.70,
                      forex_fees: 0,
                      status: Complete
                    },
                    {
                      uuid: c51343hba-d54b-5641-e341-15235523b3at,
                      payout_currency: CAD,
                      payout_date: '2019-12-10T15:52:33Z',
                      net_settlement_amount: 234.71,
                      forex_fees: 4.69,
                      status: Complete
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/settlements/details/{payout_uuid}:
    get:
      operationId: HandleSettlementDetailsRequest
      description: Get details on a specific settlement payout.
      summary: Settlement Details
      tags:
        - Reports
      parameters:
        - name: payout_uuid
          in: path
          description: The Payout UUID to get
          required: true
          schema:
            type: string
        - name: metadata
          in: query
          description: An optional comma-separated list of metadata keys. To add a metadata key as a column to the report line items, include the key in this list. When applicable, the value of the metadata key will be added to the line item. If no line items contain the metadata key, the key will not be added as a column.
          schema:
            type: string
      responses:
        200:
          description: |
            Successful Operation

            > **Important:** Use the copy button in the **Response body** example, paste the content into a text editor, and save it with a `.csv` extension to view the report in a spreadsheet.
          content:
            text/csv:
              schema:
                type: string
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/orders/report:
    get:
      operationId: HandleOrderReportsRequest
      description: Get a detailed list of orders across all order types within a date range.
      summary: Order Reports
      tags:
        - Reports
      parameters:
        - name: start-date
          in: query
          description: The UTC start date for the report. Must be in yyyy-mm-dd format.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
        - name: end-date
          in: query
          description: >-
            The UTC end date for the report. Must be in yyyy-mm-dd format.
            Must be on or after start-date and no more than 7 days after it
            (maximum reportable range: 7 days). Both start-date and end-date are inclusive.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OrderReportItem'
              example:
                - created_at: '2026-04-15T14:23:08Z'
                  order_uuid: bm99f-31vu1-kg00e-rae1g
                  order_platform_uuid: 9c81f3a4-0d11-42a6-a4cc-fac81817b583
                  customer_name: Jane Doe
                  customer_email: jane.doe@example.com
                  external_reference_id: PO-2026-0417
                  customer_currency_code: USD
                  merchant_currency_code: USD
                  order_amount_in_cents: 12500
                  captured_amount_in_cents: 12500
                  uncaptured_amount_in_cents: 0
                  total_fees_in_cents: 750
                  net_amount_in_cents: 11750
                  refund_fee_in_cents: 0
                  released_amount_in_cents: 0
                  order_type: Standard Checkout
                  financing_option: 4-pay-biweekly
                - created_at: '2026-04-16T09:11:42Z'
                  order_uuid: va13d-474s9-3000e-nungg
                  order_platform_uuid: a57841d8-2abb-4d64-8741-c28362d4bd92
                  customer_name: John Smith
                  customer_email: john.smith@example.com
                  external_reference_id: PO-2026-0418
                  customer_currency_code: CAD
                  merchant_currency_code: USD
                  order_amount_in_cents: 8000
                  captured_amount_in_cents: 5000
                  uncaptured_amount_in_cents: 3000
                  total_fees_in_cents: 480
                  net_amount_in_cents: 4520
                  refund_fee_in_cents: 0
                  released_amount_in_cents: 0
                  order_type: Virtual Card
                  financing_option: pay-in-full
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
  /v2/customer/{customer_uuid}:
    delete:
      operationId: HandleDeleteCustomer
      description: Delete an existing tokenized customer
      summary: Delete customer
      tags:
        - Customer
      parameters:
        - name: customer_uuid
          in: path
          description: The Customer UUID to delete
          required: true
          schema:
            type: string
      responses:
        204:
          $ref: '#/components/responses/StatusNoContentV2'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
    get:
      operationId: HandleGetCustomer
      description: Get details on an existing tokenized customer
      summary: Get customer
      tags:
        - Customer
      parameters:
        - name: customer_uuid
          in: path
          description: The Customer UUID to get
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TokenizedCustomerInfo'
              example:
                uuid: a9d8e15c-5e4a-4201-aa8f-7540f934a9a2
                links: [
                  {
                    href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2',
                    method: GET,
                    rel: self
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2',
                    method: DELETE,
                    rel: self
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2/preapprove',
                    method: POST,
                    rel: preapprove
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2/order',
                    method: POST,
                    rel: order
                  }
                ]
                email: john.doe@sezzle.com
                first_name: John
                last_name: Doe
                phone: '5555045294'
                dob: '1990-02-25'
                token_expiration: '2020-04-27T14:46:59Z'
                billing_address:
                  name: John Doe
                  street: 123 W Lake St
                  street2: Unit 104
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                  phone_number: '5555045294'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: get_shopper_error
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/customer:
    get:
      operationId: HandleListCustomers
      description: Retrieve a list of existing tokenized customers
      summary: Get list of customers
      tags:
        - Customer
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/TokenizedCustomer'
              example:
                [
                  {
                    uuid: a9d8e15c-5e4a-4201-aa8f-7540f934a9a2,
                    expiration: '2020-04-28T17:58:11Z',
                    links: [
                      {
                        href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2',
                        method: GET,
                        rel: self
                      },
                      {
                        href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2',
                        method: DELETE,
                        rel: self
                      },
                      {
                        href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2/preapprove',
                        method: POST,
                        rel: preapprove
                      },
                      {
                        href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2/order',
                        method: POST,
                        rel: order
                      }
                    ]
                  }
                ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/customer/{customer_uuid}/order:
    post:
      operationId: HandleAuthorizePayment
      description: Create an order for a tokenized customer
      summary: Create order by customer
      tags:
        - Customer
      parameters:
        - name: Sezzle-Request-Id
          in: header
          description: Unique client-generated ID to enforce idempotency. Maximum 36 characters.
          required: false
          schema:
            type: string
            maxLength: 36
        - name: customer_uuid
          in: path
          description: The Customer UUID for which to create the order
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderBasic'
              required:
                - intent
                - reference_id
                - order_amount
            example: 
              intent: AUTH
              reference_id: annual_sub_123
              order_amount:
                  amount_in_cents: 5000
                  currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/Response'
                  - $ref: '#/components/schemas/OrderBasic'
                  - type: object
                    properties:
                      authorization:
                        $ref: '#/components/schemas/Authorization'
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
                links: [
                  {
                    href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8',
                    method: GET,
                    rel: self
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8',
                    method: PATCH,
                    rel: self
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8/release',
                    method: POST,
                    rel: release
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8/capture',
                    method: POST,
                    rel: capture
                  },
                  {
                    href: 'https://gateway.sezzle.com/v2/order/6c9db5d4-d09a-4224-860a-b5438ac32ca8/refund',
                    method: POST,
                    rel: refund
                  }
                ]
                intent: AUTH
                reference_id: annual_sub_123
                order_amount:
                  amount_in_cents: 5000
                  currency: USD
                authorization:
                  authorization_amount:
                    amount_in_cents: 5000
                    currency: USD
                  approved: true
                  expiration: '2020-04-23T16:13:44Z'
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: token_is_expired
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: no_available_products
            message: UnprocessableV2 entity
  /v2/customer/{customer_uuid}/preapprove:
    post:
      operationId: HandlePreapproveAmount
      description: |
        Verify tokenized customer will be approved for the amount of the order prior to order creation. 
        This API does not authorize the amount nor does it hold the amount for a future order. 
        Also, you are not required to use this API before creating a customer order.
        An example use-case is to verify approval status ahead of subscription payment due date, and to contact the customer in advance to avoid failed payment.
      summary: Preapprove amount by customer
      tags:
        - Customer
      parameters:
        - name: customer_uuid
          in: path
          description: The Customer UUID to preapprove
          required: true
          schema:
            type: string
      requestBody:
        description: The order amount to verify preapproval
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Price'
            example:
              amount_in_cents: 5000
              currency: USD
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  uuid:
                    type: string
                    description: The unique identifier for this response
                  approved:
                    type: boolean
                    description: Whether the shopper is pre-approved for the given amount
              example:
                uuid: 6c9db5d4-d09a-4224-860a-b5438ac32ca8
                approved: true
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
              code: unauthorized
              message: authorization not accepted
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v2/token/{token}/session:
    get:
      operationId: HandleGetSessionToken
      description: Get the current state of a tokenization session.
      summary: Get session token
      tags:
        - Token
      parameters:
        - name: token
          in: path
          description: The session token to retrieve
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tokenization'
              example:
                token: 4f8cf865-2089-4423-85fd-ea833a16b62d
                expiration: '2020-04-29T19:31:54Z'
                links: [
                  {
                    href: 'https://gateway.sezzle.com/v2/token/4f8cf865-2089-4423-85fd-ea833a16b62d/session',
                    method: GET,
                    rel: self
                  }
                ]
                customer:
                  uuid: a9d8e15c-5e4a-4201-aa8f-7540f934a9a2
                  expiration: '2020-10-13T14:29:41Z'
                  links: [
                    {
                      href: 'https://gateway.sezzle.com/v2/customer/a9d8e15c-5e4a-4201-aa8f-7540f934a9a2',
                      method: GET,
                      rel: self
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV2'
          example:
            code: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV2'
          example:
            code: unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV2'
          example:
            code: record_not_found
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV2'
          example:
            code: invalid
            message: UnprocessableV2 entity
  /v1/authentication:
    post:
      operationId: post-authentication-v1
      description: Generate authentication token from your Sezzle merchant API keys for use in the header of all other API requests.
      summary: Obtain Authentication Token
      tags:
        - v1
        - Authentication
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AuthenticationRequest'
            example:
              private_key: sz_pr_...
              public_key: sz_pub_...
      responses:
        201:
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationResponse'
              example:
                expiration_date: 2017-01-01T01:30:25.388940303Z
                merchant_uuid: merchant1234567890
                token: example-token
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/configuration:
    post:
      operationId: post-configuration-v1
      description: Configure webhook URL
      summary: Setting Your Configuration
      tags:
        - v1
        - Webhooks
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - webhook_url
              properties:
                webhook_url:
                  type: string
                  description: A URL for us to send our webhooks to
            example:
              webhook_url: https://yourdomain.com/webhook
      responses:
        200:
          $ref: '#/components/responses/StatusNoContentV2'
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/checkouts:
    post:
      operationId: post-checkout-v1
      description: Initiate a Sezzle session with shopper order details, redirect links, and capture settings
      summary: Create a Checkout
      tags:
        - v1
        - Session
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - amount_in_cents
                - currency_code
                - order_reference_id
                - order_description
                - checkout_cancel_url
                - checkout_complete_url
              properties:
                amount_in_cents:
                  type: string
                  description: The total order amount in cents, which must be at least 100 which is $1.00. Please note your merchant configuration might have a higher minimum.
                currency_code:
                  type: string
                  description: The 3 character currency code as defined by ISO 4217
                order_reference_id:
                  type: string
                  description: Your reference ID for this order (must contain only alphanumeric characters, dashes (-), and underscores (_))
                order_description:
                  type: string
                  description: A user-facing description for this checkout
                checkout_cancel_url:
                  type: string
                  description: The HTTP request information used to redirect the customer in the case of a cancellation
                checkout_complete_url:
                  type: string
                  description: The HTTP request information used to redirect the customer upon completion of the session
                customer_details:
                  type: object
                  description: Customer details for this session. To optimize checkout and boost conversion, it is recommended to include as much customer information as possible.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name
                    last_name:
                      type: string
                      description: The customer's last name
                    email:
                      type: string
                      description: The customer's email address
                    phone:
                      type: string
                      description: The customer's phone number
                billing_address:
                  $ref: '#/components/schemas/AddressV1'
                  description: The customer's billing address
                shipping_address:
                  $ref: '#/components/schemas/AddressV1'
                  description: The customer's shipping address
                requires_shipping_info:
                  type: boolean
                  description: Flag to indicate if you would like us to collect shipping information for this checkout from the customer. If omitted, defaults to false.
                items:
                  type: array
                  description: The items being purchased
                  items:
                    $ref: '#/components/schemas/LineItemBasic'
                discounts:
                  type: array
                  description: The discounts applied to this order. Must be included in total
                  items:
                    $ref: '#/components/schemas/Discount'
                tax_amount:
                  $ref: '#/components/schemas/Price'
                  description: The taxes applied to this order. Must be included in the total
                shipping_amount:
                  $ref: '#/components/schemas/Price'
                  description: The shipping fees applied to this order. Must be included in the total
                metadata:
                  type: object
                  description: 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
                  properties:
                    any:
                      type: string
                      description: Custom metadata field
                merchant_completes:
                  type: boolean
                  description: If your checkout flow requires the user to confirm their checkout on your site after being approved by Sezzle, use `true` to only authorize the payment. If you prefer the checkout be captured immediately, use `false`. Defaults to false.
                send_checkout_url:
                  $ref: '#/components/schemas/Notification'
                  description: A Notification object for sending checkout URL to the customer
                locale:
                  type: string
                  description: Localizes the checkout. Defaults to `en-US`.
                  enum:
                    - en-US
                    - en-CA
                    - fr-CA
            example:
              amount_in_cents: 12999
              currency_code: USD
              order_reference_id: ord_12345
              order_description: Some description
              checkout_cancel_url: 'https://sezzle.com/cart'
              checkout_complete_url: 'https://sezzle.com/complete'
              customer_details:
                first_name: John
                last_name: Doe
                email: john.doe@sezzle.com
                phone: '8885401867'
              billing_address:
                name: John Doe
                street: 123 W Lake St
                street2: Unit 104
                city: Minneapolis
                state: MN
                postal_code: '55408'
                country_code: US
                phone_number: '8885401867'
              shipping_address:
                name: John Doe
                street: 123 W Lake St
                street2: Unit 104
                city: Minneapolis
                state: MN
                postal_code: '55408'
                country_code: US
                phone_number: '8885401867'
              requires_shipping_info: false
              items: [
                {
                  name: widget,
                  sku: sku123456,
                  quantity: 1,
                  price: {
                    amount_in_cents: 1000,
                    currency: USD
                  }
                }
              ]
              discounts: [
                {
                  name: 20% off,
                  amount: {
                    amount_in_cents: 1000,
                    currency: USD
                  }
                }
              ]
              tax_amount:
                amount_in_cents: 1000
                currency: USD
              shipping_amount:
                amount_in_cents: 1000
                currency: USD
              metadata:
                location_id: '123'
                store_name: Downtown Minneapolis
                store_manager: Jane Doe
              merchant_completes: true
      responses:
        201:
          description: Successful operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  checkout_uuid:
                    type: string
                    description: The unique identifier for this response
                  checkout_url:
                    type: string
                    description: The URL to which the shopper should be directed to complete their order with Sezzle
              example:
                checkout_uuid: 9dcb4d9f-ac09-4578-abf8-611128903611
                checkout_url: https://sandbox.checkout.sezzle.com?id=9dcb4d9f-ac09-4578-abf8-611128903611
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/orders/{order_reference_id}:
    get:
      operationId: get-order-details-v1
      description: Get details and check the status of an existing order
      summary: orders
      tags:
        - v1
        - Orders
      parameters:
        - name: order_reference_id
          in: path
          description: The Order Reference ID to update
          required: true
          schema:
            type: string
        - name: include-shipping-info
          in: query
          description: If your checkout post data required us to collect shipping information from the customer, then you can request that information alongside the order details.
          required: false
          schema:
            type: boolean
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  created_at:
                    type: string
                    format: date-time
                    description: The date the session was created in ISO 8601 date/time format
                  captured_at:
                    type: string
                    format: date-time
                    description: The date the order was captured in ISO 8601 date/time format
                  capture_expiration:
                    type: string
                    format: date-time
                    description: The date until which the merchant can capture the order amount. ISO 8601 date/time format
                  description:
                    type: string
                    description: Your description for this order
                  amount_in_cents:
                    type: number
                    description: The total order amount in cents in original merchant currency
                  usd_amount_in_cents:
                    type: number
                    description: The total order amount in cents converted to USD
                  customer_amount_in_cents:
                    type: number
                    description: The total order amount in cents converted to customer currency
                  currency_code:
                    type: string
                    description: The original merchant 3 character currency code as defined by ISO 4217
                  customer_currency_code:
                    type: string
                    description: The customer's 3 character currency code as defined by ISO 4217
                  reference_id:
                    type: string
                    description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
                  shipping_address:
                    $ref: '#/components/schemas/AddressV1'
                    description: The customer's shipping address
                  billing_address:
                    $ref: '#/components/schemas/AddressV1'
                    description: The customer's billing address
                  customer:
                    type: object
                    description: The customer's basic contact information
                    properties:
                      first_name:
                        type: string
                        description: The customer's first name
                      last_name:
                        type: string
                        description: The customer's last name
                      email:
                        type: string
                        description: The customer's email address
                      phone:
                        type: string
                        description: The customer's phone number
                  refunds:
                    type: array
                    description: Refunded funds event detail
                    items:
                      type: object
                      properties:
                        amount:
                          $ref: '#/components/schemas/Price'
                          description: The amount in cents for the transaction
                        created_at:
                          type: string
                          format: date-time
                          description: The UTC time and date when the refund was issued
                        is_full_refund:
                          type: boolean
                          description: Whether the transaction is the full amount of the order
                        order_reference_id:
                          type: string
                          description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
                        refund_id:
                          type: string
                          description: UUID for the Refund. Must be unique to a Merchant
                        refund_reason:
                          type: string
                          description: A reason for the refund
                  metadata:
                    type: object
                    description: 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
                    properties:
                      any:
                        type: string
                        description: Custom metadata field
                  items:
                    type: array
                    description: The items being purchased
                    items:
                      $ref: '#/components/schemas/LineItemBasic'
                  checkout_expiration:
                    type: string
                    format: date-time
                    description: 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
              example:
                created_at: 2025-06-19T19:34:57Z
                captured_at: 2025-06-19T19:35:33Z
                capture_expiration: 2025-06-26T19:35:15Z
                description: 'Order #1800'
                amount_in_cents: 12999
                usd_amount_in_cents: 12999
                customer_amount_in_cents: 12999
                currency_code: USD
                customer_currency_code: USD
                reference_id: ord_12345
                shipping_address:
                  name: John Doe
                  street: 123 West Lake street
                  street2: '104'
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                billing_address:
                  name: John Doe
                  street: 123 West Lake street
                  street2: '104'
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                customer:
                  first_name: John
                  last_name: Doe
                  email: john.doe@sezzle.com
                  phone: '8885401867'
                refunds: [
                  {
                    amount: {
                      amount_in_cents: 500,
                      currency: USD
                    },
                    refund_id: 7b33e7b6-f112-4844-a3c5-91688a6c00b7,
                    refund_reason: Item returned by user,
                    is_full_refund: false,
                    order_reference_id: ord_12345,
                    created_at: '2025-06-19T19:41:09Z'
                  }
                ]
                metadata:
                  location_id: 123
                  store_manager: Jane Doe
                  store_name: Downtown Minneapolis
                items: [
                  {
                    name: widget,
                    sku: sku123456,
                    quantity: 1,
                    price: {
                      amount_in_cents: 1000,
                      currency: USD
                    }
                  }
                ]
                sezzle_order_id: d1a6c-soq9b-j96fj-14700
                checkout_expiration: 2025-06-19T20:04:57Z
                checkout_status: completed
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/checkouts/{order_reference_id}/complete:
    post:
      operationId: post-checkout-complete-v1
      description: |
        Initiate order payment capture if `merchant_completes` was `true` at Create Checkout.
        An example use-case is if users need to return to the merchant's site before finalizing the purchase with Sezzle.
        Submit the Complete Checkout request within 30 minutes after the user is redirected to the merchant's site. Failure to do so results in Sezzle canceling the checkout.
        The default expiration period for new orders can be extended up to 7 days via the Merchant Dashboard.
      summary: Complete a Checkout
      tags:
        - v1
        - Orders
      parameters:
        - name: order_reference_id
          in: path
          description: The Order Reference ID to update
          required: true
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  amount_in_cents:
                    type: number
                    description: The order total amount in cents
                  currency_code:
                    type: string
                    description: The 3 character currency code as defined by ISO 4217
                  order_description:
                    type: string
                    description: Your description for this order
                  order_reference_id:
                    type: string
                    description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
                  display_order_reference_id:
                    type: string
                    description: ''
                  checkout_cancel_url:
                    type: string
                    description: The HTTP request information used to redirect the customer in the case of a cancellation
                  checkout_complete_url:
                    type: string
                    description: The HTTP request information used to redirect the customer upon completion of the session
                  customer:
                    type: object
                    description: The customer's basic contact information
                    properties:
                      first_name:
                        type: string
                        description: The customer's first name
                      last_name:
                        type: string
                        description: The customer's last name
                      email:
                        type: string
                        description: The customer's email address
                      phone:
                        type: string
                        description: The customer's phone number
                  billing_address:
                    $ref: '#/components/schemas/AddressV1'
                    description: The customer's billing address
                  shipping_address:
                    $ref: '#/components/schemas/AddressV1'
                    description: The customer's shipping address
                  items:
                    type: array
                    description: The items being purchased
                    items:
                      $ref: '#/components/schemas/LineItemBasic'
                  discounts:
                    type: array
                    description: The discounts applied to this order. Must be included in total
                    items:
                      $ref: '#/components/schemas/Discount'
                  tax_amount:
                    $ref: '#/components/schemas/Price'
                    description: The taxes applied to this order. Must be included in the total
                  shipping_amount:
                    $ref: '#/components/schemas/Price'
                    description: The shipping fees applied to this order. Must be included in the total
                  merchant_completes:
                    type: boolean
                    description: If your checkout flow requires the user to confirm their checkout on your site after being approved by Sezzle, use `true` to only authorize the payment. If you prefer the checkout be captured immediately, use `false`.
              example:
                amount_in_cents: 12999
                currency_code: USD
                order_description: 'Order #1800'
                order_reference_id: ord_12345
                display_order_reference_id: ord_12345
                checkout_cancel_url: https://sezzle.com/cart
                checkout_complete_url: https://sezzle.com/complete
                customer_details:
                  first_name: John
                  last_name: Doe
                  email: john.doe@sezzle.com
                  phone: '8885401867'
                billing_address:
                  name: John Doe
                  street: 123 West Lake street
                  street2: '104'
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                shipping_address:
                  name: John Doe
                  street: 123 West Lake street
                  street2: '104'
                  city: Minneapolis
                  state: MN
                  postal_code: '55408'
                  country_code: US
                items: [
                  {
                    name: widget,
                    sku: sku123456,
                    quantity: 1,
                    price: {
                      amount_in_cents: 1000,
                      currency: USD
                    }
                  }
                ]
                discounts: [
                  {
                    name: 20% off,
                    amount: {
                      amount_in_cents: 1000,
                      currency: USD
                    }
                  }
                ]
                tax_amount:
                  amount_in_cents: 1000
                  currency: USD
                shipping_amount:
                  amount_in_cents: 1000
                  currency: USD
                merchant_completes: true
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        409:
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: number
                    description: the HTTP response code
                  id:
                    type: string
                    description: General error category
                  message:
                    type: string
                    description: A more specific error message
              example:
                status: 409
                id: checkout_expired
                message: checkout not completed within time limit
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/orders/{order_reference_id}/refund:
    post:
      operationId: post-refund-v1
      description: Refund an amount by order, either partial or in full. An example use-case is when an order was captured but the customer returned item(s) that requires them to be refunded.
      summary: Refund Request
      tags:
        - v1
        - Orders
      parameters:
        - name: order_reference_id
          in: path
          description: The Order Reference ID to update
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - amount
              properties:
                refund_id:
                  type: string
                  description: UUID for the Refund. Must be unique to a Merchant
                amount:
                  $ref: '#/components/schemas/Price'
                  description: A price object that defines the amount to be refunded. Amount may not be 0, negative, or exceed the total order amount. Currency must either be the order’s currency or the customer’s paying currency. This field is optional if the is_full_refund parameter is true.
                refund_reason:
                  type: string
                  description: A reason for the refund
                is_full_refund:
                  type: boolean
                  description: Overrides amount. If true, the order will be fully refunded. If omitted, will default to false.
            example:
              refund_id: 41a2O9Lv-7
              amount:
                amount_in_cents: 500
                currency: USD
              refund_reason: Item returned by user
      responses:
        200:
          description: Successful Operation
          content:
            application/json:
              schema:
                type: object
                properties:
                  amount:
                    $ref: '#/components/schemas/Price'
                    description: ''
                  refund_id:
                    type: string
                    description: The refund ID provided in the request
                  refund_reason:
                    type: string
                    description: The refund reason provided in the request
              example:
                amount:
                  amount_in_cents: 500
                  currency: USD
                refund_id: 41a2O9Lv-7
                refund_reason: Item returned by user
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/interest/balance:
    get:
      operationId: get-interest-balance-v1
      description: If you are enrolled in the interest account program, get the current balance on the interest account. Fractions of cents are tracked to properly calculate daily interest accrual even if the interest balance is low.
      summary: Interest Account Balance Request
      tags:
        - v1
        - Reports
      parameters:
        - name: currency-code
          in: query
          description: The ISO-4217 currency code of the interest account. If omitted, will default to USD.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
              application/json:
                schema:
                  type: object
                  properties:
                    interest_balance:
                      type: number
                      description: The available interest balance on your account
                example:
                  interest_balance: 5183.4624
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/interest/activity:
    get:
      operationId: get-interest-activity-v1
      description: If you are enrolled in the interest account program, get the current activity on the interest account.
      summary: Interest Account Activity Request
      tags:
        - v1
        - Reports
      parameters:
        - name: start-date
          in: query
          description: The start date for the report. Must be in yyyy-mm-dd format.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
        - name: end-date
          in: query
          description: The end date for the report. Must be in yyyy-mm-dd format. If omitted, will default to the current date.
          schema:
            type: string
            format: yyyy-mm-dd
        - name: offset
          in: query
          description: Number of records to skip. Each response returns up to 20 records, so use 0 for the first 20, 20 for the next 20, and so on. Defaults to 0.
          schema:
            type: integer
            format: int32
        - name: currency-code
          in: query
          description: The ISO-4217 currency code of the interest account. If omitted, will default to USD.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            text/csv:
              schema:
                type: string
              example: >
                type,event_date,interest_account_change_amount,interest_account_balance_after_change
                INTEREST_PAYOUT,2019-12-21T19:10:00Z,122.8718,5101.4676
                INTEREST_WITHDRAWAL,2019-12-21T19:20:00Z,-26.1000,5075.3676
                INTEREST_ACCRUAL,2019-12-21T19:15:00Z,1.0702,5182.3922
                INTEREST_ACCRUAL,2019-12-22T19:15:00Z,1.0702,5183.4624
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/settlements/summaries:
    get:
      operationId: get-settlement-summaries-v1
      description: Get a summarized list of settlement payouts.
      summary: Settlement Summaries Request
      tags:
        - v1
        - Reports
      parameters:
        - name: start-date
          in: query
          description: The UTC start date for the report. Must be in yyyy-mm-dd format.
          required: true
          schema:
            type: string
            format: yyyy-mm-dd
        - name: end-date
          in: query
          description: The UTC end date for the report. Must be in yyyy-mm-dd format. If omitted, will default to the current date.
          schema:
            type: string
            format: yyyy-mm-dd
        - name: offset
          in: query
          description: Number of records to skip. Each response returns up to 30 records, so use 0 for the first 30, 30 for the next 30, and so on. Defaults to 0.
          schema:
            type: integer
            format: int32
        - name: currency-code
          in: query
          description: The ISO-4217 currency code selected by users at checkout. If omitted, will default to USD.
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
              application/json:
                schema:
                  type: array
                  items:
                    $ref: '#/components/schemas/WithdrawalSummary'
                example:
                  [
                    {
                      uuid: b7916fbe-f30a-4435-b411-124634287a8ca,
                      payout_currency: USD,
                      payout_date: '2019-12-09T15:52:33Z',
                      net_settlement_amount: 9370,
                      forex_fees: 0,
                      status: Complete
                    },
                    {
                      uuid: c51343hba-d54b-5641-e341-15235523b3at,
                      payout_currency: USD,
                      payout_date: '2019-12-10T15:52:33Z',
                      net_settlement_amount: 23470,
                      forex_fees: 0,
                      status: Complete
                    }
                  ]
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
  /v1/settlements/details/{payout_uuid}:
    get:
      operationId: get-settlement-details-v1
      description: Get details on a specific settlement payout.
      summary: Settlement Details Request
      tags:
        - v1
        - Reports
      parameters:
        - name: payout_uuid
          in: path
          description: The Payout UUID to get (from Settlement Summaries response)
          required: true
          schema:
            type: string
        - name: metadata
          in: query
          description: An optional comma-separated list of metadata keys. To add a metadata key as a column to the report line items, include the key in this list. When applicable, the value of the metadata key will be added to the line item. If no line items contain the metadata key, the key will not be added as a column.
          required: false
          schema:
            type: string
      responses:
        200:
          description: Successful Operation
          content:
            text/csv:
              schema:
                type: string
              example: >
                total_order_amount,total_refund_amount,total_fee_amount,total_returned_fee_amount,total_chargeback_amount,total_chargeback_reversal_amount,total_interest_transfer_amount,total_correction_amount,total_referral_revenue_transfer_amount,total_bank_account_withdrawals,total_bank_account_withdrawal_reversals,forex_fees,net_settlement_amount,payment_uuid,settlement_currency,payout_date,payout_status
                703.20,-5.00,-43.80,.30,0.00,0.00,-4.30,1.71,10.00,100.00,-100.00,0.00,693.61,a5c13qt1-4126-41d3-2fq8-9ca431f51431,USD,2019-11-02 00:05:00 +0000 UTC,Complete
                type,order_capture_date,order_created_at,event_date,order_uuid,customer_order_id,external_reference_id,order_amount,amount,posting_currency,type_code,chargeback_code,sezzle_order_id
                ORDER,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,2019-10-22T19:09:50Z,bm99f-31vu1-kg00e-rae1g,1,12345,500.00,,USD,001,,66d78e86-fd96-4266-9217-b769c102a0a0
                ORDER,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,2019-10-22T19:09:50Z,va13d-474s9-3000e-nungg,13,12346,200.00,,USD,001,,5e0d4886-8c3d-4d4e-901a-2046a06c1e0f
                ORDER,2019-11-01T20:00:01Z,2019-11-01T00:00:01Z,2019-11-01T00:00:01Z,as41g-4v4s9-3000e-nunh0,1,12347,1.40,,USD,001,,a2c1a142-96ad-48c9-93d2-1acaaee9f073
                ORDER,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,as62l-5ptqs-9g00e-pvk10,2,12348,1.80,,USD,001,,3f62dcba-f5a4-41be-ad8f-53e938b5f310
                CAPTURE,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,as62l-5ptqs-9g00e-pvk10,2,12348,,1.80,USD,001,,3f62dcba-f5a4-41be-ad8f-53e938b5f310
                FEE,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,bm99f-31vu1-kg00e-rae1g,1,12345,,-30.00,USD,003,,66d78e86-fd96-4266-9217-b769c102a0a0
                FEE,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,2019-11-01T19:09:50Z,va13d-474s9-3000e-nungg,13,12346,,-12.00,USD,003,,5e0d4886-8c3d-4d4e-901a-2046a06c1e0f
                FEE,2019-11-01T20:00:01Z,2019-11-01T00:00:01Z,2019-11-01T20:00:01Z,as41g-4v4s9-3000e-nunh0,1,12347,,-1.20,USD,003,,a2c1a142-96ad-48c9-93d2-1acaaee9f073
                FEE,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,2019-11-01T20:00:01Z,as62l-5ptqs-9g00e-pvk10,2,12348,,-0.60,USD,003,,3f62dcba-f5a4-41be-ad8f-53e938b5f310
                REFUND,2019-10-22T19:09:50Z,2019-10-22T19:09:50Z,2019-11-01T19:09:50Z,bm5rm-vg2js-1tsky-c2dsky,8,12344,,5.00,USD,002,,e4194956-de70-4958-9da4-6c05f276fdab
                RETURNED_FEE,2019-10-22T19:09:50Z,2019-10-22T19:09:50Z,2019-11-01T19:09:50Z,bm5rm-vg2js-1tsky-c2dsky,7,12344,,.30,USD,004,,e4194956-de70-4958-9da4-6c05f276fdab
                CORRECTION,,,2019-11-01T17:00:01Z,,,,,-1.29,,007,
                CORRECTION,,,2019-11-01T17:00:01Z,,,,,3.00,,007,
                INTEREST_TRANSFER,,,2019-11-01T18:00:01Z,,,,,-4.30,,008,
                REFERRAL_REVENUE_TRANSFER,,,2019-11-01T15:00:01Z,,,,,10.00,,009,
                BANK_ACCOUNT_WITHDRAWAL,,,2019-11-02T00:05:00Z,,,,,100.00,,010,
                BANK_ACCOUNT_WITHDRAWAL_REVERSAL,,,2019-11-02T00:05:00Z,,,,,-100.00,,011,
        400:
          $ref: '#/components/responses/BadRequestV1'
          example:
            status: 400
            id: bad_request
            message: bad request
        401:
          $ref: '#/components/responses/UnauthorizedV1'
          example:
            status: 401
            id: Unauthorized
            message: authorization not accepted
        404:
          $ref: '#/components/responses/NotFoundV1'
          example:
            status: 404
            id: invalid
            message: not found
        422:
          $ref: '#/components/responses/UnprocessableV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
components:
  responses:
    StatusCreatedV2:
      description: Status Created
    StatusNoContentV2:
      description: Status No Content
    BadRequestV1:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            status: 400
            id: bad_request
            message: bad request
    BadRequestV2:
      description: Invalid request
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ErrorV2'
          example:
            - code: bad_request
              message: bad request
    UnauthorizedV1:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            status: 401
            id: unauthorized
            message: authorization not accepted
    UnauthorizedV2:
      description: Unauthorized. Returned for any failed bearer or basic auth, including expired bearer tokens.
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ErrorV2'
          example:
            - code: unauthorized
              message: authorization not accepted
    NotFoundV1:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            status: 404
            id: record_not_found
            message: not found
    NotFoundV2:
      description: The specified resource was not found
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ErrorV2'
          example:
            - code: record_not_found
              message: not found
    UnprocessableV1:
      description: Unable to process the request entity
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorV1'
          example:
            status: 422
            id: invalid
            message: Unprocessable entity
    UnprocessableV2:
      description: Unable to process the request entity
      content:
        application/json:
          schema:
            type: array
            items:
              $ref: '#/components/schemas/ErrorV2'
          example:
            - code: invalid
              message: Unprocessable entity
  schemas:
    OrderReportItem:
      type: object
      required:
        - created_at
        - order_uuid
        - customer_currency_code
        - merchant_currency_code
        - order_amount_in_cents
        - captured_amount_in_cents
        - uncaptured_amount_in_cents
        - total_fees_in_cents
        - net_amount_in_cents
        - order_type
      properties:
        created_at:
          type: string
          format: date-time
          description: The UTC date and time the order was created.
        order_uuid:
          type: string
          description: >-
            The Sezzle-assigned order identifier. This is the same order ID merchants see in the Merchant Dashboard,
            and is distinct from order_platform_uuid (the platform-specific identifier).
        order_platform_uuid:
          type: string
          description: The platform-specific identifier for the order.
        customer_name:
          type: string
          description: The shopper's name as captured at checkout.
        customer_email:
          type: string
          description: The shopper's email as captured at checkout.
        external_reference_id:
          type: string
          description: The merchant-supplied reference for the order.
        customer_currency_code:
          type: string
          description: The ISO-4217 currency the shopper paid in.
        merchant_currency_code:
          type: string
          description: The ISO-4217 currency the merchant settles in.
        order_amount_in_cents:
          type: integer
          description: The gross order amount, in cents.
        captured_amount_in_cents:
          type: integer
          description: The amount captured against the order so far, in cents.
        uncaptured_amount_in_cents:
          type: integer
          description: The authorized amount not yet captured, in cents.
        total_fees_in_cents:
          type: integer
          description: The total Sezzle fees on captured amounts, in cents.
        net_amount_in_cents:
          type: integer
          description: The captured amount minus fees and refunds, in cents.
        refund_fee_in_cents:
          type: integer
          description: The portion of fees refunded back to the merchant, in cents. Not the order refund amount itself.
        released_amount_in_cents:
          type: integer
          description: The authorized amount released without being captured, in cents.
        order_type:
          type: string
          description: The display label for the order type.
          enum:
            - Standard Checkout
            - Virtual Card
            - Express Checkout
            - Affiliate
            - Gift Card
            - Pay In Full
            - Six Pay Monthly
            - Four Pay Monthly
            - Long Term Lending
        financing_option:
          type: string
          description: The installment plan applied to the order. Empty for order types without an installment plan.
          enum:
            - 4-pay-biweekly
            - 4-pay-monthly
            - 6-pay-monthly
            - 2-pay-biweekly
            - 5-pay-biweekly
            - pay-in-full
    CheckoutMode:
      type: string
      description: The mode for the order checkout. Defaults to redirect if not provided. If iframe or popup is provided, then the cancel and complete URLs must include the origin of the parent window.
      enum:
        - iframe
        - popup
        - redirect
    InstallmentPlan:
      type: string
      description: |
        *currently not supported, defaults to 4-pay-biweekly*
      enum:
        - 4-pay-biweekly
        - 4-pay-monthly
        - 6-pay-monthly
    Intent:
      type: string
      description: |
        - 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
      enum:
        - AUTH
        - CAPTURE
    Language:
      type: string
      description: The language of the notification. Acceptable values are en and fr-CA. Will default to English if not provided.
      enum:
        - en
        - fr-CA
    Locale:
      type: string
      description: Localizes the checkout. Accepted values are en-US (English, United States), en-CA (English, Canada) and fr-CA (French, Canada). Defaults to en-US if not provided.
      enum:
        - en-US
        - en-CA
        - fr-CA
    WebhookEvents:
      type: string
      enum:
        - customer.tokenized
        - order.authorized
        - order.captured
        - order.refunded
        - dispute.merchant_input_requested
        - dispute.deadline_approaching
        - dispute.closed.customer_win
        - dispute.closed.merchant_win
        - dispute.closed.neutral
    WebhookTestEvents:
      type: string
      description: One of the Valid Webhook Events
      enum:
        - customer.tokenized
        - order.authorized
        - order.captured
        - order.refunded
        - dispute.merchant_input_requested
        - dispute.deadline_approaching
        - dispute.closed.customer_win
        - dispute.closed.merchant_win
        - dispute.closed.neutral
    Address:
      type: object
      properties:
        name:
          type: string
          description: The name on the address
        street:
          type: string
          description: The street and number of the address
        street2:
          type: string
          description: The apt or unit
        city:
          type: string
          description: The city
        state:
          type: string
          description: The 2 character state code
        postal_code:
          type: string
          description: The postal delivery code
        country_code:
          type: string
          description: The 2 character country code
    AddressV1:
      allOf:
        - $ref: '#/components/schemas/Address'
        - type: object
          properties:
            phone_number:
              type: string
              description: The phone number at the delivery location
    AddressV2:
      allOf:
        - $ref: '#/components/schemas/Address'
        - type: object
          properties:
            phone:
              type: string
              description: The phone number at the delivery location
    AuthenticationRequest:
      type: object
      required:
        - private_key
        - public_key
      properties:
        public_key:
          type: string
          description: 'Find your API keys at https://dashboard.sezzle.com/merchant/settings/apikeys'
        private_key:
          type: string
          description: 'Find your API keys at https://dashboard.sezzle.com/merchant/settings/apikeys'
    AuthenticationResponse:
      type: object
      properties:
        token:
          type: string
          description: |
            - For use in the header of other requests:
            - Authorization: Bearer {response.token}
        expiration_date:
          type: string
          format: date-time
          description: You must replace the token you obtain from the Authentication endpoint every 120 minutes. However, we do not restrict you to a single token, and you can obtain a new one at any time.
        merchant_uuid:
          type: string
          description: The merchant UUID for the account
    Authorization:
      type: object
      description: The authorization details for the order
      properties:
        authorization_amount:
          $ref: '#/components/schemas/Price'
          description: The amount that was authorized
        authorization_amount_in_user_currency:
          $ref: '#/components/schemas/Price'
          description: |
            Authorization amount denominated in the shopper's currency.
            Sezzle always settles in the shopper's local currency, so this is the amount
            actually authorized against the shopper's account. Useful for reconciling against
            the funds you receive at settlement when the shopper's currency differs from yours.

            **Only populated on `GET /v2/order/{order_uuid}` once the shopper has completed
            checkout and the order has been created.** The field is omitted on pre-order calls
            and on responses from other endpoints (reauthorize, upcharge).
        approved:
          type: boolean
          description: Shopper approval status for the order
        expiration:
          type: string
          format: date-time
          description: The date until which the merchant can capture the order amount. ISO 8601 date/time format
    AuthorizationDetails:
      type: object
      properties:
        releases:
          type: array
          description: Released funds event details
          items:
            $ref: '#/components/schemas/AuthorizationEvent'
        captures:
          type: array
          description: Captured funds event details
          items:
            $ref: '#/components/schemas/AuthorizationEvent'
        refunds:
          type: array
          description: Refunded funds event detail
          items:
            $ref: '#/components/schemas/AuthorizationEvent'
        financing_option:
          $ref: '#/components/schemas/InstallmentPlan'
        sezzle_order_id:
          type: string
          description: Sezzle Order ID reflected in Merchant Dashboard
    AuthorizationEvent:
      type: object
      properties:
        uuid:
          type: string
          description: The unique identifier for the event
        amount:
          $ref: '#/components/schemas/Price'
          description: The amount and currency of the event
    CaptureRequest:
      type: object
      properties:
        capture_amount:
          $ref: '#/components/schemas/Price'
          description: A price object with the amount and currency being captured
      required:
        - capture_amount
    CardSessionRequest:
      required:
        - origin
        - mode
        - merchant_reference_id
        - amount_in_cents
        - currency
      allOf:
        - $ref: '#/components/schemas/Price'
        - type: object
          properties:
            origin:
              type: string
              description: The window origin of the host
            mode:
              $ref: '#/components/schemas/CheckoutMode'
            merchant_reference_id:
              type: string
              description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
            card_response_format:
              type: string
              description: Value of token required to use tokenization
            items:
              type: array
              items:
                $ref: '#/components/schemas/LineItem'
            customer:
              $ref: '#/components/schemas/Customer'
              description: The customer for this session
    CheckoutRequestCustomer:
      type: object
      properties:
        first_name:
          type: string
          description: The customer's first name
        last_name:
          type: string
          description: The customer's last name
        email:
          type: string
          description: The customer's email address
        phone:
          type: string
          description: The customer's phone number
    Customer:
      allOf:
        - $ref: '#/components/schemas/CheckoutRequestCustomer'
        - type: object
          properties:
            billing_address:
              $ref: '#/components/schemas/AddressV2'
              description: The customer's billing address
    Discount:
      type: object
      properties:
        name:
          type: string
          description: The description of the discount
        amount:
          $ref: '#/components/schemas/Price'
          description: A price object
    Dispute:
      type: object
      properties:
        id:
          type: integer
          description: The dispute's identifier, matching `dispute_id` in dispute webhook payloads
        type:
          type: string
          description: The type of the dispute, e.g. `No Product Or Service`
        status:
          type: string
          description: The merchant-facing dispute status. One of `Awaiting Merchant Response`, `Merchant Final Notice`, `Closed Customer Win`, `Closed Merchant Win`, `Closed All Win`, or a coarse category (`Opened`, `Processing`, `Closed`) while the dispute is between those statuses
        amount:
          $ref: '#/components/schemas/Price'
          description: The disputed amount — the order total in the customer's currency, matching the dispute webhook amount
        opened_at:
          type: string
          format: date-time
          description: When the dispute was opened. ISO 8601 date/time format
        due_date:
          type: string
          format: date
          description: The merchant response deadline, date-only `YYYY-MM-DD` (matches `dispute_due_date` in dispute webhook payloads). Only present while the dispute is awaiting a merchant response
        close_reason:
          type: string
          description: Why the dispute was closed. Only present once the dispute is closed
    ErrorV1:
      type: object
      properties:
        status:
          type: number
          description: Matches the HTTP Status code of the response
        id:
          type: string
          description: A programmatic identifier for the error. These rarely (if at all) change.
        message:
          type: string
          description: A human-friendly string. These may change, and are intended to assist in debugging rather than program logic.
    ErrorV2:
      type: object
      properties:
        code:
          type: string
          description: The general error type
        message:
          type: string
          description: A more specific error message, if available
        location:
          type: string
          description: Where the error occurred
        debug_uuid:
          type: string
          description: The unique identifier assigned to this error for troubleshooting
    LineItemBasic:
      type: object
      description: Merchants who are in the Sports & Hobbies or Hunting & Fishing categories must define a category_path for each item in the order. Please talk with your account manager for further details.
      properties:
        name:
          type: string
          description: The name of the item
        sku:
          type: string
          description: The sku identifier
        quantity:
          type: integer
          description: The quantity purchased
        price:
          $ref: '#/components/schemas/Price'
          description: The price of the product before tax and discounts
        category_path:
          type: string
          description: 'The category path where the product is located. Use `>` only as the category delimiter, not as part of a product or category name. Example: Camping Gear & Supplies > Tents & Shelters.'
    LineItem:
      description: Merchants who are in the Sports & Hobbies or Hunting & Fishing categories must define a category_path for each item in the order. Please talk with your account manager for further details.
      allOf:
        - $ref: '#/components/schemas/LineItemBasic'
        - type: object
          properties:
            name:
              type: string
              description: The name of the item
            sku:
              type: string
              description: The sku identifier
            quantity:
              type: integer
              description: The quantity purchased
            price:
              $ref: '#/components/schemas/Price'
              description: The price of the product before tax and discounts
            brand:
              type: string
              description: 'The products brand name as customers would recognize. Examples: Nike, Kelty, Brooks, Carhartt, Columbia'
            image_url:
              type: string
              description: The fully qualified URL that shows the image
            product_url:
              type: string
              description: The fully qualified URL that links directly to the product being purchased
            global_trade_item_number:
              type: string
              description: The products Global Trade Item Number (GTIN). Common types include UPC, ISBN, EAN. Exclude dashes and spaces.
            manufacturer_part_number:
              type: string
              description: The products Manufacturer Part Number (MPN) which together with brand can uniquely identify a product.
    Link:
      type: object
      required:
        - href
      properties:
        href:
          type: string
          description: The fully qualified URL for the API endpoint
        rel:
          type: string
          description: The relationship type indicating the purpose of this link (e.g., 'self' for the current resource, 'create' for creating a new resource, 'list' for listing resources)
          enum:
            - self
            - capture
            - checkout
            - create
            - customer
            - list
            - order
            - preapprove
            - refund
            - release
            - session
        method:
          type: string
          description: The HTTP method to use when calling this API endpoint
          enum:
            - GET
            - POST
            - PATCH
            - DELETE
    Notification:
      type: object
      properties:
        to_sms_phone:
          type: string
          description: The SMS phone number of the notification
        to_email:
          type: string
          description: The email address of the notification
        language:
          $ref: '#/components/schemas/Language'
    OrderBasic:
      type: object
      properties:
        intent:
          $ref: '#/components/schemas/Intent'
        reference_id:
          type: string
          description: The checkout or cart ID from the merchant, currently used for tracking only (must contain only alphanumeric characters, dashes (-), and underscores (_))
        order_amount:
          $ref: '#/components/schemas/Price'
          description: 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.
    OrderDetail:
      type: object
      properties:
        description:
          type: string
          description: Your description for this order
        metadata:
          type: object
          description: 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
          properties:
            any:
              type: string
              description: Custom metadata field
        items:
          type: array
          description: The items being purchased
          items:
            $ref: '#/components/schemas/LineItem'
    OrderGet:
      type: object
      properties:
        checkout_expiration:
          type: string
          format: date-time
          description: 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:
          type: string
          description: |
            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 before the shopper completed the order
            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.
          enum:
            - active
            - completed
            - denied
            - deleted
        tax_amount:
          $ref: '#/components/schemas/PriceBase'
          description: 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:
          $ref: '#/components/schemas/PriceBase'
          description: 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:
          description: Shipping method would be returned only for express checkout once the shopper selects from the available options.
          type: object
          properties:
            name:
              type: string
              description: The name of the shipping method
            description:
              type: string
              description: The description of the shipping method
        is_upcharge:
          type: boolean
          description: True if this order was created via the Upcharge endpoint to capture an additional amount on a parent order.
        parent_order_uuid:
          type: string
          description: When `is_upcharge` is true, the UUID of the original (parent) order that this upcharge was applied to.
        upcharges:
          type: array
          description: 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.).
          items:
            type: object
            properties:
              uuid:
                type: string
                description: The UUID of the upcharge order
              amount:
                $ref: '#/components/schemas/Price'
                description: The amount of the upcharge
        dispute:
          $ref: '#/components/schemas/Dispute'
          description: |
            Summary of the dispute on this order. Only present when the account is allowlisted and the order has a dispute.

            > ⚠️ **Available by request only.** Contact Sezzle to have your merchant account allowlisted before using this field.
    OrderCheckout:
      type: object
      properties:
        requires_shipping_info:
          type: boolean
          description: Flag to indicate if you would like us to collect shipping information for this checkout from the customer. If omitted, defaults to false. Required for express checkout flow if express_checkout_type is single-step or multi-step.
        discounts:
          type: array
          description: The discounts applied to this order. Must be included in total
          items:
            $ref: '#/components/schemas/Discount'
        tax_amount:
          $ref: '#/components/schemas/Price'
          description: The taxes applied to this order. Must be included in the total
        shipping_amount:
          $ref: '#/components/schemas/Price'
          description: The shipping fees applied to this order. Must be included in the total
        checkout_mode:
          $ref: '#/components/schemas/CheckoutMode'          
        send_checkout_url:
          $ref: '#/components/schemas/Notification'
          description: A Notification object for sending checkout URL to the customer
        checkout_expiration:
          type: string
          format: date-time
          description: The date until which the shopper can access the checkout_url to complete the order, in ISO 8601 date/time format. If omitted, defaults to 30 minutes after creation. Values more than 7 days out are capped at 7 days.
        locale:
          $ref: '#/components/schemas/Locale'
        checkout_financing_options:
          type: array
          description: The financing options of the checkout. Only one option can be included.
          items:
            $ref: '#/components/schemas/InstallmentPlan'
    OrderResponse:
      type: object
      properties:
        uuid:
          type: string
          description: The unique identifier for the order details provided by the merchant
        intent:
          $ref: '#/components/schemas/Intent'
        checkout_url:
          type: string
          description: The URL to which the shopper should be directed to complete their order with Sezzle
        links:
          type: array
          items:
            $ref: '#/components/schemas/Link'
    PriceBase:
      type: object
      properties:
        amount_in_cents:
          type: integer
          description: The amount in cents
        currency:
          type: string
          description: The 3 character currency code as defined by ISO 4217
    Price:
      allOf:
        - $ref: '#/components/schemas/PriceBase'
        - type: object
          required:
            - amount_in_cents
            - currency
    ReauthorizeRequest:
      $ref: '#/components/schemas/Price'
    RefundRequest:
      $ref: '#/components/schemas/Price'
    ReleaseRequest:
      description: The amount to release
      $ref: '#/components/schemas/Price'
    Response:
      type: object
      properties:
        uuid:
          type: string
          description: The unique identifier for this response
        links:
          type: array
          description: Available API links prefilled with UUID with accompanying method
          items:
            $ref: '#/components/schemas/Link'
    SessionOrderResponse:
      type: object
      properties:
        uuid:
          type: string
          description: Unique identifier for this order
        intent:
          $ref: '#/components/schemas/Intent'
        checkout_url:
          type: string
          description: The URL to which the shopper should be directed to complete their order with Sezzle
        links:
          type: array
          description: Available API links prefilled with UUID with accompanying method
          items:
            $ref: '#/components/schemas/Link'
    SessionRequest:
      type: object
      required:
        - complete_url
      properties:
        cancel_url:
          required:
            - href
          type: object
          properties:
            href:
              type: string
              description: The URL used when redirecting a customer upon order cancellation
            method:
              type: string
              description: The HTTP request method used when redirecting a customer. Currently only the GET method is supported. If omitted, will default to GET.
          description: |
            The HTTP request information used to redirect the customer in the case of a cancellation.
            Required for sessions that include an order and use redirect checkout. Optional for standalone tokenization sessions, which have no order to cancel — supply it only if you want a separate destination for customers who decline.
        complete_url:
          required:
            - href
          type: object
          properties:
            href:
              type: string
              description: The URL used when redirecting a customer upon order completion
            method:
              type: string
              description: The HTTP request method used when redirecting a customer. Currently only the GET method is supported. If omitted, will default to GET.
          description: |
            The HTTP request information used to redirect the customer upon completion of the session.
            Required for sessions that include an order and use redirect checkout, and for any session that tokenizes a customer — including standalone tokenization, where it is the destination the customer returns to after approving.
        customer:
          allOf:
            - $ref: '#/components/schemas/Customer'
            - type: object
              properties:
                shipping_address:
                  $ref: '#/components/schemas/AddressV2'
                  description: |
                    The customer's shipping address.
                    Merchants enrolled in Sezzle's Long Term Lending program (as well as general integrations) must send a Customer object that includes, at a minimum, a complete and valid shipping_address object. Post office box (i.e., P. O. Box) addresses are not accepted for this purpose. For more details, please contact your account manager.
                dob:
                  type: string
                  format: YYYY-MM-DD
                  description: The customer's date of birth in YYYY-MM-DD format (parameter is input only)
                tokenize:
                  type: boolean
                  description: |
                    Tokenizing a customer allows you to authorize future transactions on their behalf. If omitted, will default to false.
                    To create an order and tokenize a customer in a single session, set customer.tokenize to true and provide an order object. The user will be prompted to accept tokenization during checkout.
                    To tokenize a customer without a purchase (standalone tokenization), set customer.tokenize to true and omit the order object. The response returns tokenize.approval_url to redirect the customer to. Standalone tokenization is enabled per merchant — contact your account manager.
                recurring:
                  type: boolean
                  description: |
                    Indicates whether the tokenization is part of a recurring subscription. 
                      true - The token is associated with a subscription and will be reused for future charges.
                      false - The token is for a one-time use, such as Pre-order or Single Tokenization.
                recurring_metadata: 
                  type: object
                  properties: 
                    name:
                      type: string
                      description: |
                        The name of the subscription plan associated with the recurring tokenization. This field provides context for the recurring charge agreement and can be shown in checkout
          description: Customer details for this session. To optimize checkout and boost conversion, it is recommended to include as much customer information as possible.
        order:
          description: |
            Order ID, amount, and capture intent. Order details optional.
          allOf:
            - $ref: '#/components/schemas/OrderBasic'
            - $ref: '#/components/schemas/OrderDetail'
            - $ref: '#/components/schemas/OrderCheckout'
          required:
            - intent
            - reference_id
            - description
            - order_amount
        express_checkout_type:
          type: string
          description: |
            - single-step: only one shipping method exists, or only use default shipping method for Sezzle express checkout flow
            - multi-step: allow the user to select from merchant-supported shipping methods
            - no-shipping: purchase contains no shippable items and shopper does not have option to select, such as digital download or buy online pick up in store (BOPIS).
          enum:
            - single-step
            - multi-step
            - no-shipping
    SessionTokenResponse:
      type: object
      properties:
        token:
          type: string
          description: This token represents the merchant request to tokenize a customer. This token can only be used one time. Once a user accepts/denies tokenization, this token and its approval URL will be obsolete.
        expiration:
          type: string
          format: date-time
          description: The expiration of the request token in ISO 8601 date/time format.
        approval_url:
          type: string
          description: |
            The URL for the user to accept tokenization. This URL does not create an order and the customer is not charged; it is only used for tokenizing a customer.
            Returned only for standalone tokenization — a session with customer.tokenize set to true and no order object — and only for merchants who have standalone tokenization enabled. It is omitted for sessions that include an order, where the customer authorizes tokenization during checkout instead.
            The URL expires 30 minutes after the session is created, which is sooner than the expiration field above. Create the session at the moment the customer clicks to authorize.
    Tokenization:
      type: object
      properties:
        token:
          type: string
          description: The token from the request
        expiration:
          type: string
          format: date-time
          description: The UTC expiration date of the token
        customer:
          description: If the customer has not finished tokenization then the customer object is omitted
          allOf:
            - $ref: '#/components/schemas/TokenizedCustomer'
            - type: object
              properties:
                 dob:
                  type: string
                  format: YYYY-MM-DD
                  description: The customer's date of birth in YYYY-MM-DD format (parameter is input only)
        links:
          $ref: '#/components/schemas/Link'
    TokenizedCustomer:
      allOf:
        - $ref: '#/components/schemas/Response'
        - type: object
          properties:
            expiration:
              type: string
              format: date-time
              description: The UTC expiration date of the customer tokenization
    TokenizedCustomerInfo:
      allOf:
        - $ref: '#/components/schemas/Response'
        - $ref: '#/components/schemas/Customer'
        - type: object
          properties:
            dob:
              type: string
              format: YYYY-MM-DD
              description: The customer's date of birth in YYYY-MM-DD format (parameter is input only)
            token_expiration:
              type: string
              format: date-time
              description: The UTC expiration date of the customer tokenization
    Webhook:
      type: object
      properties:
        url:
          type: string
          description: The URL you are using to receive webhooks
        events:
          type: array
          description: An array of webhook events you wish to subscribe to
          items:
            $ref: '#/components/schemas/WebhookEvents'
      required:
        - url
        - events
    WebhookResponse:
      allOf:
        - $ref: '#/components/schemas/Response'
        - $ref: '#/components/schemas/Webhook'
    WebhookTestRequest:
      type: object
      properties:
        event:
          $ref: '#/components/schemas/WebhookTestEvents'
        url:
          type: string
          description: A url to receive the test webhook. If omitted, the test webhook is sent to all urls subscribed to that event.
      required:
        - event
    WithdrawalSummary:
      type: object
      properties:
        uuid:
          type: string
          description: The unique identifier for the settlement
        payout_currency:
          type: string
          description: The ISO-4217 currency code of the payout sent to the destination bank account
        settlement_currency:
          type: string
          description: The ISO-4217 currency code of the amount to be settled
        payout_date:
          type: string
          format: date-time
          description: The UTC date and time of the payout
        final_payout_amount:
          type: number
          format: float
          description: The final amount sent in the currency of the destination bank account
        net_settlement_amount:
          type: number
          format: float
          description: The net amount (after forex fees) to be settled
        forex_fees:
          type: number
          format: float
          description: Foreign exchange fees associated with this settlement payout
        status:
          type: string
          description: The current status of the payout
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
      description: The authentication token generated from providing API Keys to Sezzle Gateway
