Create a collection
POST
{{url}}payments/collection
Create a Direct Debit collection against a mandate_id
to collect payments from the customer's bank account.
Include the collection amount and the relating mandate_id
in your request.
https://docs.acquired.com/reference/create-a-collection
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
RESPONSES
status
curl -X POST 'https://test-api.acquired.com/v1/payments/collection' -d '{"transaction":{"order_id":"1f1f2a61-5b68-4725-a0ce-9560514ec00b","amount":15.02,"currency":"gbp","custom_data":"L3BheW1lbnQtbGlua3MgcGF5IGN1c3RvbV9kYXRh","custom1":"4f0a0e0d-a407-46d8-841a-3409831d69a3","custom2":"eb031f5b-9c34-4101-8dea-269ca88fcadb"},"payment":{"mandate_id":"18456786-5d7a-44a6-a4cb-aaaf95590f87","charge_date":"2024-08-05"}}'