Skip to main content
POST
/
pay-link
Create Payment Link
curl --request POST \
  --url https://testapi.fractalpay.com/api/v1/pay-link \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "4.55",
  "merchant_key": "{{merchant_key}}",
  "order_id": "22111fdz",
  "invoice_number": "345"
}
'
{
  "data": {
    "order_id": "22111fdz",
    "payment_link": "https://testapi.fractalpay.com/authcheck-paymentlink/u6j3garacoj",
    "sales_id": "txn_c2e0adab55"
  },
  "message": "Quick Pay Order created successfully.",
  "result": true
}

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.

Body

application/json
amount
string
required
Example:

"4.55"

merchant_key
string
required

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

Example:

"{{merchant_key}}"

order_id
string
required
Example:

"22111fdz"

invoice_number
string
Example:

"345"

allow_card
boolean
default:true

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.

Example:

true

allow_ach
boolean
default: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.

Example:

true

Response

201 - application/json

Create Link

data
object
message
string
Example:

"Quick Pay Order created successfully."

result
boolean
Example:

true