curl --request POST \
--url https://testapi.fractalpay.com/api/v1/customers/charge/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"merchant_key": "{{merchant_key}}",
"order_id": "556465"
}
'{
"message": "Payment captured successfully.",
"result": true,
"transaction_id": "txn_0e99eb7c5a"
}Customers
Charge Customer
Charge Customer
POST
/
customers
/
charge
/
{customerId}
curl --request POST \
--url https://testapi.fractalpay.com/api/v1/customers/charge/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 1,
"merchant_key": "{{merchant_key}}",
"order_id": "556465"
}
'{
"message": "Payment captured successfully.",
"result": true,
"transaction_id": "txn_0e99eb7c5a"
}Authorizations
Use your Fractal API credentials.
Username = Client ID Password = Secret Key
Sandbox credentials can be generated from the Test Portal.
Headers
string
Example:
"9ee4a08a-2e34-11ef-af4e-0ef0812e6179"
Path Parameters
The customer's unique ID. Returned in the customer_id field of the Create Customer (POST /customers/add) response. To retrieve a list of all customers and their IDs, use the Get Customers (GET /customers) endpoint.
Query Parameters
string
Example:
""
Body
application/jsontext/plain