Skip to main content
POST
/
preauth
Pre-Authorization with Token
curl --request POST \
  --url https://testapi.fractalpay.com/api/v1/preauth \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Token": "DC4:AACvCzOJt4-3q0gP2cgdt5HTtF7KCDBVZ25xwbO1eGtlh0GwBlfh9zfCmLH7x6oxarVKMkGw1qkj-jwsNiOW6x4uAgu9hvxK8JxYgsIgO3u0gmUyoC7ixaWjkgQfpex1WwFkwtGzXJ_eTZWeLMJLDW_1",
  "amount": 1.5,
  "merchant_key": "{{merchant_key}}"
}
'
{
  "data": {
    "transaction_id": "08a55e95-fa71-4763-945c-6291ece41648"
  },
  "message": "Authorization Approved",
  "result": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.fractalpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Use your Fractal API credentials.

Username = Client ID Password = Secret Key

Sandbox credentials can be generated from the Test Portal.

Headers

api_key
string
Example:

"8af9a5a0e6338fbafd8d2fa7a688fd16363cc865c6e6ede3002d041c2613cb99"

Body

application/json
Token
string
Example:

"DC4:AACvCzOJt4-3q0gP2cgdt5HTtF7KCDBVZ25xwbO1eGtlh0GwBlfh9zfCmLH7x6oxarVKMkGw1qkj-jwsNiOW6x4uAgu9hvxK8JxYgsIgO3u0gmUyoC7ixaWjkgQfpex1WwFkwtGzXJ_eTZWeLMJLDW_1"

amount
number
Example:

1.5

merchant_key
string

The merchant's unique key. Returned in the merchant_key field of the get merchants by client call.

Example:

"{{merchant_key}}"

Response

200 - application/json

Pre-Authorization with Token

data
object
message
string
Example:

"Authorization Approved"

result
boolean
Example:

true