Checkout links
Creating a checkout payment link.
To generate an order associated with your payment link on the platform via API, you need to make a POST request with the following configuration:
URL
https://api.bembit.com/api/v1/orders/{checkoutid}/checkout
Method
POST
Params
Important
The parameter checkoutid is embedded in the URI of the request as shown in the link above.
Params | Type | Default values | Descrption |
---|---|---|---|
checkoutid | string | undefined | Payment's link alias. |
Request Body:
{
"network": 56,
"currency": "BRL",
"amount": 1000,
"requester": {
"name": "string",
"email": "string",
"document": "string"
}
}
- network: Identifier number of the blockchain being used in this operation.
- currency: Symbol of the currency accepted in the order being created.
- amount: The amount to charge.
- requester / name: Customer's name.
- requester / email: Customer's e-mail.
- requester / document: Customer's ID.
Important
The information shown in the Request body should be provided to the request as demonstrated in the following cURL.
curl -X 'POST' \
'https://api-sandbox.bembit.com/api/v1/orders/{checkoutid}/checkout' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"network": {blockchain id number},
"currency": "currency symbol",
"amount": {integer},
"requester": {
"name": "string",
"email": "string",
"document": "string"
}
}'
Server Responses:
Status 200:
Success
Status 403:
Unauthorized
Status 404:
Checkout not found
See and test our API on Swagger.