Merchant API reference

Numeric product and price IDs. camelCase request fields. Live and sandbox keys share the same API base URL and are scoped to separate resources.

Download OpenAPI 3.1 JSON ↗ · API-hosted schema

Start with the catalog

GET https://api.mixpayer.com/api/v1/merchant/products
Authorization: Bearer sk_test_…

Copy priceId from a sandbox product in the dashboard, or from the catalog API. To reuse a live product, choose “Copy to sandbox”; the copy has independent product and price IDs.

Create checkout

{
  "customerId": "user_123",
  "priceId": 22,
  "requestId": "app-order-1001",
  "metadata": {
    "appOrderId": "1001"
  },
  "successUrl": "https://example.com/payment/success",
  "cancelUrl": "https://example.com/payment/canceled"
}

POST /api/v1/merchant/checkout/sessions. Save data.token and data.orderNo. Open data.checkoutUrl in the browser. Metadata returns in payment and subscription webhooks.

Quantity and volume pricing

Send purchaseQuantity to buy multiple units of a product that permits it. The server applies the highest qualifying quantity tier to all units, then an optional code (only if the merchant permits stacking), then tax. Checkout sessions lock quantity. Orders, sessions and events expose purchaseQuantity, unitAmountMinor, volumeDiscountMinor and entitlementUnits. Fixed-price subscriptions retain contracted quantity and volume pricing; codes discount the first payment only. Metered billing remains single-unit. Products default to one unit until enabled in the dashboard.

Customer-entered amounts

For one-time prices, your authenticated backend may pass customAmountMinor even when customer editing is off. The price switch controls customer editing, not merchant API access. When off, the amount is displayed without an input. When on, the passed amount is editable within the saved limits. Set minimum, maximum and suggestions in Product management. Default is payment only: no credits or license issued. The entered amount is the final total, inclusive of applicable tax; codes, quantity tiers and localized overrides do not apply. Send an integer customAmountMinor in currency minor units as the requested amount. Editing follows the price switch. If omitted, the configured price is used. Sessions snapshot their editing policy; existing explicit locks stay locked. Updates reuse the same order and metadata, and stop when payment starts. Orders and payment events include customAmountMinor and customGrantMode.

Sandbox checkout

A sandbox checkoutUrl opens the same branded plan and billing pages as live checkout. Use the test-result selector for success or decline, or Cancel test checkout. No real card or provider is contacted. Sandbox dynamic amounts follow the session editing policy and bounds; regular fixed prices stay fixed; discount codes, currency switching, metered billing and live-only resources are explicitly unavailable. Copy a live product into the sandbox catalog first; it receives independent product and price IDs. Tax-inclusive flags are preserved, but test checkout does not calculate live country tax or promotions.

Read and reconcile

GET /api/v1/merchant/checkout/sessions/{token} returns HTTP 200 for completed resources. Look at data.status and data.orderStatus; complete means checkout completed, while orderStatus distinguishes paid from refunded. A redirect alone is not proof of payment.

Endpoints

POST /api/v1/merchant/checkout/sessions

Create a server-priced checkout session using a numeric priceId from the matching environment

{
  "operationId": "post_api_v1_merchant_checkout_sessions",
  "summary": "Create a server-priced checkout session using a numeric priceId from the matching environment",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    },
    "201": {
      "description": "Checkout session created; data.token and data.checkoutUrl are returned",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CheckoutSession"
              }
            }
          }
        }
      }
    }
  },
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/CheckoutInput"
        },
        "example": {
          "customerId": "user_123",
          "priceId": 22,
          "requestId": "app-order-1001",
          "metadata": {
            "appOrderId": "1001"
          },
          "successUrl": "https://example.com/payment/success",
          "cancelUrl": "https://example.com/payment/canceled"
        }
      }
    }
  }
}
GET /api/v1/merchant/checkout/sessions/{token}

GET /api/v1/merchant/checkout/sessions/{token}

{
  "operationId": "get_api_v1_merchant_checkout_sessions__token_",
  "summary": "GET /api/v1/merchant/checkout/sessions/{token}",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CheckoutSession"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/checkout/sessions/{token}/simulate-pay

Sandbox key and a matching sandbox resource required. Never contacts an upstream payment provider.

{
  "operationId": "post_api_v1_merchant_checkout_sessions__token__simulate_pay",
  "summary": "POST /api/v1/merchant/checkout/sessions/{token}/simulate-pay",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  },
  "description": "Sandbox key and a matching sandbox resource required. Never contacts an upstream payment provider."
}
GET /api/v1/merchant/customers/{customerId}/entitlements/{kind}

GET /api/v1/merchant/customers/{customerId}/entitlements/{kind}

{
  "operationId": "get_api_v1_merchant_customers__customerId__entitlements__kind_",
  "summary": "GET /api/v1/merchant/customers/{customerId}/entitlements/{kind}",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "customerId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/reservations

POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/reservations

{
  "operationId": "post_api_v1_merchant_customers__customerId__entitlements__kind__reservations",
  "summary": "POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/reservations",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "customerId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/entitlements/reservations/{key}/release

POST /api/v1/merchant/entitlements/reservations/{key}/release

{
  "operationId": "post_api_v1_merchant_entitlements_reservations__key__release",
  "summary": "POST /api/v1/merchant/entitlements/reservations/{key}/release",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/entitlements/reservations/{key}/consume

POST /api/v1/merchant/entitlements/reservations/{key}/consume

{
  "operationId": "post_api_v1_merchant_entitlements_reservations__key__consume",
  "summary": "POST /api/v1/merchant/entitlements/reservations/{key}/consume",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "key",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/consume

POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/consume

{
  "operationId": "post_api_v1_merchant_customers__customerId__entitlements__kind__consume",
  "summary": "POST /api/v1/merchant/customers/{customerId}/entitlements/{kind}/consume",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "customerId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    },
    {
      "name": "kind",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/refunds

POST /api/v1/merchant/refunds

{
  "operationId": "post_api_v1_merchant_refunds",
  "summary": "POST /api/v1/merchant/refunds",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    },
    "201": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    }
  },
  "parameters": [],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "reason"
          ],
          "properties": {
            "orderId": {
              "type": "integer",
              "minimum": 1
            },
            "orderNo": {
              "type": "string"
            },
            "amountMinor": {
              "type": "integer",
              "minimum": 1,
              "description": "Omit for remaining full amount; integer minor units"
            },
            "reason": {
              "type": "string",
              "minLength": 5,
              "maxLength": 255
            }
          }
        }
      }
    }
  }
}
POST /api/v1/merchant/orders/{orderId}/cancel-subscription

Schedules cancellation at period end; status remains active during the paid period. Repeating cancellation is idempotent. The order route is a backward-compatible alias; prefer the subscription route.

{
  "operationId": "post_api_v1_merchant_orders__orderId__cancel_subscription",
  "summary": "POST /api/v1/merchant/orders/{orderId}/cancel-subscription",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Subscription with cancelAtPeriodEnd=true. Immediate cancellation is not supported.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "orderId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "at_period_end"
              ],
              "default": "at_period_end"
            }
          }
        }
      }
    }
  },
  "description": "Schedules cancellation at period end; status remains active during the paid period. Repeating cancellation is idempotent. The order route is a backward-compatible alias; prefer the subscription route."
}
GET /api/v1/merchant/subscriptions

GET /api/v1/merchant/subscriptions

{
  "operationId": "get_api_v1_merchant_subscriptions",
  "summary": "GET /api/v1/merchant/subscriptions",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
GET /api/v1/merchant/subscriptions/{id}

GET /api/v1/merchant/subscriptions/{id}

{
  "operationId": "get_api_v1_merchant_subscriptions__id_",
  "summary": "GET /api/v1/merchant/subscriptions/{id}",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/subscriptions/{id}/cancel

Schedules cancellation at period end; status remains active during the paid period. Repeating cancellation is idempotent. The order route is a backward-compatible alias; prefer the subscription route.

{
  "operationId": "post_api_v1_merchant_subscriptions__id__cancel",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/cancel",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Subscription with cancelAtPeriodEnd=true. Immediate cancellation is not supported.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "mode": {
              "type": "string",
              "enum": [
                "at_period_end"
              ],
              "default": "at_period_end"
            }
          }
        }
      }
    }
  },
  "description": "Schedules cancellation at period end; status remains active during the paid period. Repeating cancellation is idempotent. The order route is a backward-compatible alias; prefer the subscription route."
}
POST /api/v1/merchant/subscriptions/{id}/resume

POST /api/v1/merchant/subscriptions/{id}/resume

{
  "operationId": "post_api_v1_merchant_subscriptions__id__resume",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/resume",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/subscriptions/{id}/change-plan

POST /api/v1/merchant/subscriptions/{id}/change-plan

{
  "operationId": "post_api_v1_merchant_subscriptions__id__change_plan",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/change-plan",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/subscriptions/{id}/switch-collection-price

POST /api/v1/merchant/subscriptions/{id}/switch-collection-price

{
  "operationId": "post_api_v1_merchant_subscriptions__id__switch_collection_price",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/switch-collection-price",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/customers/{customerId}/licenses

GET /api/v1/merchant/customers/{customerId}/licenses

{
  "operationId": "get_api_v1_merchant_customers__customerId__licenses",
  "summary": "GET /api/v1/merchant/customers/{customerId}/licenses",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "customerId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
GET /api/v1/merchant/customers/{customerId}/features

GET /api/v1/merchant/customers/{customerId}/features

{
  "operationId": "get_api_v1_merchant_customers__customerId__features",
  "summary": "GET /api/v1/merchant/customers/{customerId}/features",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "customerId",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/licenses/verify

POST /api/v1/merchant/licenses/verify

{
  "operationId": "post_api_v1_merchant_licenses_verify",
  "summary": "POST /api/v1/merchant/licenses/verify",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/meters

GET /api/v1/merchant/meters

{
  "operationId": "get_api_v1_merchant_meters",
  "summary": "GET /api/v1/merchant/meters",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
POST /api/v1/merchant/meters

POST /api/v1/merchant/meters

{
  "operationId": "post_api_v1_merchant_meters",
  "summary": "POST /api/v1/merchant/meters",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/meters/events

POST /api/v1/merchant/meters/events

{
  "operationId": "post_api_v1_merchant_meters_events",
  "summary": "POST /api/v1/merchant/meters/events",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/meters/{code}/usage

GET /api/v1/merchant/meters/{code}/usage

{
  "operationId": "get_api_v1_merchant_meters__code__usage",
  "summary": "GET /api/v1/merchant/meters/{code}/usage",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "code",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
GET /api/v1/merchant/usage-bills

GET /api/v1/merchant/usage-bills

{
  "operationId": "get_api_v1_merchant_usage_bills",
  "summary": "GET /api/v1/merchant/usage-bills",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
POST /api/v1/merchant/subscriptions/{id}/close-meter-period

POST /api/v1/merchant/subscriptions/{id}/close-meter-period

{
  "operationId": "post_api_v1_merchant_subscriptions__id__close_meter_period",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/close-meter-period",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/collections

GET /api/v1/merchant/collections

{
  "operationId": "get_api_v1_merchant_collections",
  "summary": "GET /api/v1/merchant/collections",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
GET /api/v1/merchant/collections/{code}

GET /api/v1/merchant/collections/{code}

{
  "operationId": "get_api_v1_merchant_collections__code_",
  "summary": "GET /api/v1/merchant/collections/{code}",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "code",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/portal/sessions

POST /api/v1/merchant/portal/sessions

{
  "operationId": "post_api_v1_merchant_portal_sessions",
  "summary": "POST /api/v1/merchant/portal/sessions",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/payment-links

POST /api/v1/merchant/payment-links

{
  "operationId": "post_api_v1_merchant_payment_links",
  "summary": "POST /api/v1/merchant/payment-links",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
POST /api/v1/merchant/pricing/quote

POST /api/v1/merchant/pricing/quote

{
  "operationId": "post_api_v1_merchant_pricing_quote",
  "summary": "POST /api/v1/merchant/pricing/quote",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/analytics/summary

GET /api/v1/merchant/analytics/summary

{
  "operationId": "get_api_v1_merchant_analytics_summary",
  "summary": "GET /api/v1/merchant/analytics/summary",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
GET /api/v1/merchant/invoices

GET /api/v1/merchant/invoices

{
  "operationId": "get_api_v1_merchant_invoices",
  "summary": "GET /api/v1/merchant/invoices",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
POST /api/v1/merchant/disputes

POST /api/v1/merchant/disputes

{
  "operationId": "post_api_v1_merchant_disputes",
  "summary": "POST /api/v1/merchant/disputes",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  }
}
GET /api/v1/merchant/products

GET /api/v1/merchant/products

{
  "operationId": "get_api_v1_merchant_products",
  "summary": "GET /api/v1/merchant/products",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": []
}
GET /api/v1/merchant/products/{id}/prices

GET /api/v1/merchant/products/{id}/prices

{
  "operationId": "get_api_v1_merchant_products__id__prices",
  "summary": "GET /api/v1/merchant/products/{id}/prices",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "data": {}
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ]
}
POST /api/v1/merchant/subscriptions/{id}/simulate-renewal

Sandbox key and a matching sandbox resource required. Never contacts an upstream payment provider.

{
  "operationId": "post_api_v1_merchant_subscriptions__id__simulate_renewal",
  "summary": "POST /api/v1/merchant/subscriptions/{id}/simulate-renewal",
  "tags": [
    "Merchant API"
  ],
  "security": [
    {
      "MerchantKey": []
    }
  ],
  "responses": {
    "200": {
      "description": "Successful resource read or operation",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/Subscription"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/Error"
    },
    "401": {
      "$ref": "#/components/responses/Error"
    },
    "403": {
      "$ref": "#/components/responses/Error"
    },
    "404": {
      "$ref": "#/components/responses/Error"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    },
    "429": {
      "$ref": "#/components/responses/RateLimit"
    }
  },
  "parameters": [
    {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": false,
    "content": {
      "application/json": {
        "schema": {
          "type": "object"
        }
      }
    }
  },
  "description": "Sandbox key and a matching sandbox resource required. Never contacts an upstream payment provider."
}
GET /api/v1/public/checkout/sessions/{token}

Read a token-bound checkout resource in any status (including complete)

{
  "summary": "Read a token-bound checkout resource in any status (including complete)",
  "security": [],
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "Resource exists; data.status is open, complete, expired, canceled or failed. GET returns 200 for complete resources.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "data"
            ],
            "properties": {
              "data": {
                "$ref": "#/components/schemas/CheckoutSession"
              }
            }
          }
        }
      }
    },
    "404": {
      "$ref": "#/components/responses/Error"
    }
  }
}
POST /api/v1/public/checkout/sessions/{token}/simulate

Complete or cancel a hosted sandbox session without a secret in the browser

{
  "summary": "Complete or cancel a hosted sandbox session without a secret in the browser",
  "security": [],
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "outcome": {
              "type": "string",
              "enum": [
                "success",
                "declined",
                "canceled"
              ]
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Updated sandbox session"
    },
    "409": {
      "$ref": "#/components/responses/Error"
    }
  }
}
GET /api/v1/public/checkout/sessions/{token}/return

Get the stored success/cancel URL with server-generated signed query parameters

{
  "summary": "Get the stored success/cancel URL with server-generated signed query parameters",
  "security": [],
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "responses": {
    "200": {
      "description": "data.url contains signed return URL"
    },
    "409": {
      "description": "Session has no final result or configured return URL"
    }
  }
}
POST /api/v1/public/checkout/sessions/{token}/amount

Change the amount of an open, editable custom-amount checkout

{
  "summary": "Change the amount of an open, editable custom-amount checkout",
  "security": [],
  "parameters": [
    {
      "name": "token",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string"
      }
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "required": [
            "customAmountMinor"
          ],
          "properties": {
            "customAmountMinor": {
              "type": "integer",
              "minimum": 1,
              "maximum": 999999999999
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "Updated public checkout snapshot"
    },
    "400": {
      "description": "Integer minor units required"
    },
    "409": {
      "description": "Amount out of range, locked, expired, closed or payment already started"
    }
  }
}

Errors and rate limits

HTTP / codeMeaning and action
400 INVALID_REQUESTCheck camelCase fields, numeric IDs, integer minor units and URL formats.
401 UNAUTHORIZED / INVALID_API_KEYSend the correct site secret via Bearer or X-Api-Key.
403 SANDBOX_ONLYUse sk_test_ and a sandbox resource for simulation.
403 SANDBOX_UNSUPPORTEDThis feature is not supported in sandbox. Live data is never used as fallback.
404 SESSION_NOT_FOUND / PRODUCT_NOT_FOUND / SUBSCRIPTION_NOT_FOUNDMissing, wrong site or wrong environment. Check IDs and key environment.
409 CHECKOUT_SESSION_FAILEDPrice is not available or does not belong to the key environment.
409 REFUND_FAILEDValidate paid order and remaining refundable amount; inspect message for upstream rejection.
409 SIMULATE_RENEWAL_FAILEDOnly active, trialing or past-due sandbox subscriptions without pending cancellation can renew. Legacy subscriptions using shared live products must be replaced with a subscription on a copied sandbox product.
400 UNSUPPORTED_CANCEL_MODEOnly at_period_end is supported. Use the subscription ID route; order route is a compatibility alias.
429 RATE_LIMITED120 requests/minute per site and environment, with a burst of 30. Obey Retry-After and reduce polling.
Upstream 0028Original transaction not found. Sandbox refunds are simulated locally and must not encounter this upstream error.
Upstream 0034Provider does not allow same-day refunds. Wait for its eligible refund date; do not retry rapidly or grant access changes from a failed refund.

Amounts are integer minor units (USD 100 = $1.00; JPY 100 = ¥100). Taxes are configured per price; new prices default to tax exclusive. Live service fees, provider support and refund eligibility follow your agreement.