curl --request POST \
--url https://testapi.fractalpay.com/api/v1/requests/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "4.00",
"merchant_key": "{{merchant_key}}",
"order_id": "54514",
"preauth": true
}
'{
"data": {
"order_id": "54514",
"pay_link": "http://localhost:8082/pre-auth/bb40a9028ef7e65521bb4d21ee491437?amount=4.00&order_id=54514",
"sales_id": ""
},
"message": "Text request has been sent"
}Payment Request Customer
Payment Request Customer
curl --request POST \
--url https://testapi.fractalpay.com/api/v1/requests/{customerId} \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": "4.00",
"merchant_key": "{{merchant_key}}",
"order_id": "54514",
"preauth": true
}
'{
"data": {
"order_id": "54514",
"pay_link": "http://localhost:8082/pre-auth/bb40a9028ef7e65521bb4d21ee491437?amount=4.00&order_id=54514",
"sales_id": ""
},
"message": "Text request has been sent"
}Authorizations
Use your Fractal API credentials.
Username = Client ID Password = Secret Key
Sandbox credentials can be generated from the Test Portal.
Headers
"8af9a5a0e6338fbafd8d2fa7a688fd16363cc865c6e6ede3002d041c2613cb99"
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.
Body
"4.00"
The merchant's unique key. Returned in the merchant_key field of the get merchants by client call.
"{{merchant_key}}"
"512345"
true
false
"345"
Allow card as a payment method. At least one of allow_card or allow_ach must be true — setting both to false will result in an error.
true
Allow ACH as a payment method. At least one of allow_card or allow_ach must be true — setting both to false will result in an error.
true