Using the Public API for checkout
Accepting cryptocurrency payments with the CPAY Public API is fast and easy. After you've signed up you already can to create a charge to receive a payment.
Login to merchant
Endpoint POST /public/auth
Request Body
Name
Type
Description
{
"token": "string"
}{
"status": "fail",
"data": {
"message": [
"publicKey should not be empty",
"privateKey should not be empty"
]
}
}Checkout(donation) creating
Endpoint POST /api/public/checkout/donation
Request Body
Name
Type
Description
Checkout(sale) creating
Endpoint /api​/public​/checkout​/sale
Request Body
Name
Type
Description
Get all checkouts list
Endpoint /api/public/checkout
Query Parameters
Name
Type
Description
Get a specific checkout
Endpoint /api/public/checkout/{checkoutId}
Path Parameters
Name
Type
Description
Checkout deleting
Endpoint /api/public/checkout{checkoutId}
Path Parameters
Name
Type
Description
Checkout(donation) editing
Endpoint PATCH /api/public/checkout/{checkoutId}/donation
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Checkout(sale) editing
Endpoint PATCH /api/public/checkout/{checkoutId}/sale
Path Parameters
Name
Type
Description
Request Body
Name
Type
Description
Receive a payment
Get the chargeId
Endpoint /api/checkout-client/{identifier}/charge
Path Parameters
Name
Type
Description
Get the charge
Endpoint /api/checkout-client/{chargeId}/charge
Path Parameters
Name
Type
Description
Endpoint /api/checkout-client/{identifier}
Path Parameters
Name
Type
Description
Last updated