Process a Purchase

POST /directdebit/v1/accounts/account_id/purchases

A Direct Debit purchase request allows you to transfer money from a customer's bank account to your merchant account. To process a purchase, you must make a POST request to the purchases endpoint for the relevant bank account type: ACH, EFT, SEPA or BACS; in the example below this is an ACH account. The transaction is completed in real time, though the banking network typically takes 3–5 days to transfer the funds.

For details of how to process a purchase invoking Split Payouts, click here.

This request contains a profile, billing address, and full bank account information. You can make this request without these details if you use a payment token created with the Paysafe Customer Vault API.

By default the Direct Debit processing system will check for duplicate transactions.

Prior to trying the example, you should:

  • Provide a unique merchant reference number for each transaction (if this value is not unique, and the number has been used in the past 90 days, the request will be flagged as a duplicate).
  • Replace the merchant account number (89987201 in the example above) in the URL with the test account number you received for the currency you wish to test.
  • Replace the API key (after the -u) with the API key you have received.

The response returns an id value and a status that indicates whether the purchase is complete, pending, or failed. The purchase ID can be used to look up or cancel the purchase.

See our API Reference section for a full description of the parameters required for the request and returned in the response.

Did you find this page useful?