Creating a payment
The method allows you to create a payment with an arbitrary amount in the coin in which the address was connected
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
The body of the request to create a payment for the payment link
merchantIdstringRequiredExample:
Merchant ID
3ef22c52-c364-4acd-941d-5940f647a4f1
billingLinkIdstringRequiredExample:
Payment link ID
c7358087-4e45-44b7-8de2-427621f2eaf4
webhookUrlstringOptionalExample:
URL for notification of payment status change
https://merchant.domain/webhooks/payment
amountstringRequiredExample:
Payment amount in the currency in which the payment link was created
10
Responses
200Success
application/json
post
POST /api-gateway/recurrents/make-payment HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 178
{
"merchantId": "3ef22c52-c364-4acd-941d-5940f647a4f1",
"billingLinkId": "c7358087-4e45-44b7-8de2-427621f2eaf4",
"webhookUrl": "https://merchant.domain/webhooks/payment",
"amount": "10"
}
200Success
{
"success": true,
"response": {
"id": "f34c6baf-ee1f-411d-b2d9-9798bde5b21d",
"merchantId": "3ef22c52-c364-4acd-941d-5940f647a4f1",
"billingLinkId": "c7358087-4e45-44b7-8de2-427621f2eaf4",
"webhookUrl": "https://merchant.domain/webhooks/payment",
"amount": "10",
"tx": null,
"status": "INIT",
"createdAt": "2025-06-09T11:38:26.576Z",
"updatedAt": "2025-06-09T11:38:26.576Z"
}
}
Last updated