Create a new ACH payment intent as a draft.
const url = 'https://api.paygasus.com/payments/ach';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"amount":1000,"currency":"USD","description":"example","metadata":"example","payment_method":{"account_holder_name":"Jane Buyer","account_holder_type":"personal","account_number":"000123456789","account_type":"checking","routing_number":"021000021"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.paygasus.com/payments/ach \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "amount": 1000, "currency": "USD", "description": "example", "metadata": "example", "payment_method": { "account_holder_name": "Jane Buyer", "account_holder_type": "personal", "account_number": "000123456789", "account_type": "checking", "routing_number": "021000021" } }'The intent starts in created and is not yet sent to the bank. Send it for
settlement with the submit endpoint.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
A monetary amount in the currency’s minor units (e.g. cents for USD).
Example
1000Currently supported currencies by Paygasus Pay
Example
USDobject
Example
Jane BuyerExample
000123456789Example
021000021Responses
Section titled “Responses”Draft payment intent created
object
A monetary amount in the currency’s minor units (e.g. cents for USD).
Currently supported currencies by Paygasus Pay
object
object
Draft, not yet submitted to FNBO.
object
Submitted; accepted by FNBO and awaiting submission to the Fed. The only
state (besides created) from which a transfer can be canceled.
object
Being processed by FNBO.
object
Sent to the Fed. Reversible via the reversal endpoint; may still be
returned later by the receiving bank.
object
A created/pending transfer canceled before submission to the Fed.
object
Returned by the Fed / receiving bank (e.g. R01 insufficient funds).
object
A processed transfer reversed by the originator.
object
Example
{ "amount": 1000, "currency": "USD", "id": "ach_9Z3K01ARZ3NDEKTSV4RRFFQ69G5FAV", "payment_method": { "account_holder_name": "Jane Buyer", "account_holder_type": "personal", "account_last4": "6789", "account_type": "checking", "routing_number": "021000021" }, "status": { "status": "created" }}Invalid request
object
object
Examplegenerated
{ "error": { "code": "example", "message": "example", "param": "example", "type": "example" }}