Required if the account is part of multiple organizations. If the account only has access to one organization, this header is not required.
Spense Partner APIs (v1)
Request
Get a list of available payment methods, which can be used to specify which payment method to use when creating a payment. The list of payment methods may change over time, so it is recommended to fetch this list dynamically when creating a payment, to allow the user select the payment method they want to use.
The list of payment methods is not guaranteed to be exhaustive, and special configuration is needed for most of the possible methods.
The default method which is a payment link, will always be available with the string ID 000000000000000000000000.
- Production APIhttps://api.spensepay.com/partner/payment-methods
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.spensepay.com/partner/payment-methods?test_mode=false' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'X-Organization-Id: string'[ { "id": "000000000000000000000000", "name": "Payment link via SMS/Email", "type": "payment_link", "active": true } ]
Request
Attempt to re-send the payment method for a payment.This will not create a new payment, but re-send the payment to the specified payment method. This can be used many times and have different behaviour depending on the type of method used.
- If a payment link method is used, the payment link will be sent again.
- If a terminal method is used, the payment will be sent to the specified terminal.
- If a invoice method is used, we will send a invoice to the specified invoice type.
Rely on webhooks to get notified about the result of the action.
- Production APIhttps://api.spensepay.com/partner/payment-methods/resend
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.spensepay.com/partner/payment-methods/resend \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'X-Organization-Id: string' \
-d '{
"payflow_id": "string",
"payment_method_id": "string"
}'{}