Make your first API request

To make your first request, send an authenticated request to the /charges endpoint. This will create a charge.

Create a charge.

POST /charges

To create a charge, following information should be included in payload request

More details at Create a charge

Request Body

NameTypeDescription

name*

string

Name of the charge

description

string

Description of the charge

logoUrl

string

Charge image URL

metadata

string

Metadata associated with the charge

localPrice*

object

amount: Charge amount, currency: Charge local currency

redirectUrl*

string

Redirect URL when charge payment is completed

cancelUrl*

string

Cancel URL

{
    "statusCode": 201,
    "time": "2022-03-09T09:27:14.456Z",
    "data": {
    // Charge data come here
    },
    "total": 0
}

For testing purpose, after create a charge, you can still cancel the charge by using Cancel a charge API. Prefer full API documents in the next sections.

Last updated