The ID of the payment request
- Void a payment request
Adfin API (1.0.0)
Adfin uses OAuth 2.0 access tokens to authenticate all API requests.
There are two contexts in which tokens are issued:
Biller Access Tokens — Generated via the Authorization Code flow when a biller connects their Adfin account. These tokens grant access to that biller's data (invoices, payment requests, customers, etc.).
Platform Access Tokens — Generated via the Client Credentials flow when a platform authenticates as itself rather than as one of its billers. A platform uses one to manage its own webhook subscriptions under
/api/apps/{clientId}/webhooks.
A short description or summary of the payment request.
The payment request amount. Omit it when line items are supplied, as the total is calculated from them.
reference for the payment request
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paymentRequestNo": "PR-1234",
"description": "Monthly subscription fee for January",
"payByDate": "2025-12-15T23:59:59Z",
"amount": 99.99,
"reference": "REF 123456",
"taxRate": 20,
"redirectUrl": "string"
}'The request has succeeded and has resulted in one payment request being updated
The currency in which the payment request is raised
The date when payment is initiated for this payment request (only for Direct Debit)
The payment request status
The reason as predefined code why the payment request is in a certain status
The source of the payment request
The payments made as part of this payment request
The credit control status of the payment request
The list of custom fields that are applied to the payment request
Fees that would apply to this payment request if it isn't paid by the grace period (e.g. projected late fees). Populated only when no fees have been applied yet.
{ "id": "string", "paymentRequestNo": "string", "reference": "string", "description": "string", "totalAmount": 0, "principalAmount": 0, "paidAmount": 0, "dueAmount": 0, "fees": [ { … } ], "currencyCode": "AED", "taxRate": 0, "payByDate": "2019-08-24T14:15:22Z", "creationTime": "2019-08-24T14:15:22Z", "distributionTime": "2019-08-24T14:15:22Z", "lastNotificationSentTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "paidTime": "2019-08-24T14:15:22Z", "paymentInitiationDate": "2019-08-24T14:15:22Z", "chargeDate": "2019-08-24T14:15:22Z", "payoutDate": "2019-08-24T14:15:22Z", "status": "DRAFT", "statusReasonCode": "MISSING_PAYER_CONTACT_DETAILS", "statusReason": "string", "paymentRequestSource": "MANUAL", "payments": [ { … } ], "discounts": [ { … } ], "paymentLink": { "url": "string", "lastSeenTime": "2019-08-24T14:15:22Z" }, "redirectUrl": "string", "invoices": [ { … } ], "customer": { "id": "string", "externalId": "string", "name": "string", "creationTime": "2019-08-24T14:15:22Z", "lastUpdatedTime": "2019-08-24T14:15:22Z", "people": [ … ], "addresses": [ … ], "directDebitMandate": { … }, "billerBankAccount": { … }, "timezone": "string", "discount": { … }, "externalData": [ … ], "tags": [ … ], "status": "ACTIVE", "statusReasonCode": "MERGED", "settings": { … }, "trackingItems": [ … ], "office": { … }, "collectionAgentId": "fe30a7f6-c47c-4051-9601-bd9dbc464447" }, "distribution": { "collectionMethod": "ONE_TIME_PAYMENT", "customMessage": "string", "templateId": "string" }, "associationType": "SINGLE", "creditControlStatus": "AT_RISK", "workflowType": "AUTO_COLLECT", "scheduleDetails": { "scheduleId": "string", "scheduleNo": "string", "type": "RECURRING" }, "instalmentDetails": { "index": 0, "cadence": { … } }, "customFields": [ { … } ], "tags": [ "string" ], "createdBy": "string", "applicableFees": [ { … } ], "invoiceInput": { "issueInvoice": true, "itemsTaxType": "EXCLUSIVE", "items": [ … ] } }
- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:void
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}:void
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}:void
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:void' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Mock serverhttps://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:mark-as-paid
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}:mark-as-paid
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}:mark-as-paid
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/products/direct-integration/direct-integration-api-reference/payment_requests/{id}:mark-as-paid' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'