ResourcesCharges

Create a charge

This endpoint allows you to create a new charge object. This can be for a paid transaction or a free item claim.

This endpoint allows you to create a new charge object. This can be for a paid transaction or a free item claim.

POST
/v2/charges

Authorization

bearerAuth
AuthorizationBearer <token>

Provide your SellApp API key as a bearer token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://sell.app/api/v2/charges" \  -H "Content-Type: application/json" \  -d '{    "email": "customer@example.com",    "return_url": "https://store.com/thank-you",    "currency": "USD",    "total": 10000,    "payment_method": "PAYPAL",    "reference": "Test Payment"  }'
{
  "data": {
    "id": 1,
    "url": "https://sell.app/store/charges/select/1?signature=...",
    "status": "PENDING"
  }
}