Marks this payment request so that, if its next auto-collection attempt fails, further collection retries are cancelled and the workflow transitions off auto-collect.
- Activate (send) 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.
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/payment_requests/{id}:cancel-collection-on-failure
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}:cancel-collection-on-failure
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}:cancel-collection-on-failure
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/api-docs/prod/payment_requests/{id}:cancel-collection-on-failure' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'How the payment is expected to be collected for this invoice.
An optional message that will be sent to the customer when the invoice is activated.
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/payment_requests/{id}:activate
- Production API Server URLhttps://api.adfin.com/api/payment_requests/{id}:activate
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/{id}:activate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://developer.adfin.com/_mock/api-docs/prod/payment_requests/{id}:activate' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"collectionMethod": "ONE_TIME_PAYMENT",
"customMessage": "string",
"templateId": "string"
}'The IDs of the payment requests for which to update the distribution details
- Mock serverhttps://developer.adfin.com/_mock/api-docs/prod/payment_requests/distribution
- Production API Server URLhttps://api.adfin.com/api/payment_requests/distribution
- Staging API Server URLhttps://api.staging.adfin.com/api/payment_requests/distribution
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://developer.adfin.com/_mock/api-docs/prod/payment_requests/distribution \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"paymentRequestIds": [
"string"
],
"distributionDetails": {
"collectionMethod": "AUTO_COLLECT",
"customMessage": "Thank you for your business!",
"approvedForSending": true
}
}'