Skip to Content
API ReferenceCharges

Create a charge

Create a standalone charge for a payment or a free claim.

Create a standalone charge for a payment or a free claim.

Pass locale or language to control the hosted checkout language. For example, pt-BR is stored as pt_BR on the created charge.

For custom payments, send payment_method: "CUSTOM_PAYMENT_METHOD" with custom_payment_method_id, or include CUSTOM_PAYMENT_METHOD in payment_methods and let the customer select. use_all_payment_methods: true includes usable custom methods. Optionally send custom_payment_method_ids to limit the choices; omit it to save the store's currently usable IDs. IDs must belong to this store and identify enabled, usable methods. Product assignments do not apply.

A returned charge is not proof of payment. Custom-payment confirmation or proof submission changes the state to REVIEW; verify receipt before approving the charge. Ordinary charge coupons and custom-method adjustments can change the amount due. Wallet top-ups start in the customer portal and do not apply these adjustments; metadata.wallet remains prohibited here.

POST
/v2/charges

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Header Parameters

X-STORE?string

Store slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.

Request Body

application/json
  1. body
email*string
Formatemail
return_url*string
Formaturi
cancel_url?|
Formaturi
webhook?|

Optional public webhook destination validated for safe delivery. A browser return is not payment confirmation.

Formaturi
reference?|
Lengthlength <= 255
description?|
Lengthlength <= 255
currency?string

Supported three-letter currency code, normalized to uppercase. Defaults to USD when omitted. When supplied, total is required; supply both for a paid charge.

Length3 <= length <= 3
total?integer

Integer minor units in currency; 1999 USD is $19.99. Required when currency is supplied. Maximum is the minor-unit equivalent of 99,999,999 major currency units. Omit total and currency together for a free USD claim.

Range0 <= value
payment_method?string
Value in"AUTHNET""BTCPAY""CASHAPP""COINBASE""PADDLE""PAYDASH""PAYPAL""PAYSTACK""SQUARE""STRIPE""VENMO""NMI""MERCADO_PAGO""MOLLIE""RAZORPAY""CUSTOM_PAYMENT_METHOD""LIFI""BTC""LTC""ETH""XMR""SOL""ADA""BNB""TRX""MATIC""ETH_USDT""ETH_USDC""ETH_UNI""ETH_SHIB""ETH_DAI""BNB_USDT""BNB_USDC""TRX_USDT""TRX_USDC""SOL_USDT""SOL_USDC"
payment_methods?array<>
Items1 <= items
custom_payment_method_id?|

Required when payment_method is CUSTOM_PAYMENT_METHOD; otherwise omit it. The ULID must identify an enabled, usable method in this store and belong to custom_payment_method_ids when provided.

Length26 <= length <= 26
custom_payment_method_ids?array<>

Optional subset of enabled, usable custom method ULIDs for this charge. Include CUSTOM_PAYMENT_METHOD among the allowed gateways. Omit to snapshot all currently usable methods; newly created methods are not added later. Product assignments do not apply. Null and an empty array are invalid.

Items1 <= items
use_all_payment_methods?boolean
deliverable?|null
metadata?|

Optional metadata. The wallet key is prohibited; standalone charge creation cannot create a wallet top-up.

coupon_code?|

Optional coupon code. A charge takes a store-wide coupon for one-time purchases only: a coupon whose applies_to is subscriptions returns 422 with Coupon code {code} only applies to subscriptions.

Response Body

Successful response.

application/json
  1. response
data*
curl -X POST 'https://sell.app/api/v2/charges' \  -H 'X-STORE: launch-lab' \  -H 'Content-Type: application/json' \  -d '{  "email": "sofia.rivera@example.com",  "return_url": "https://example.com/launch-complete",  "currency": "USD",  "total": 10000,  "payment_method": "PAYPAL",  "reference": "One more thing launch"}'
{  "data": {    "id": 1,    "url": "https://sell.app/store/charges/select/1?signature=...",    "status": "PENDING",    "custom_payment_method_id": null  }}