- API reference
API reference
Every /v1 endpoint, generated from the route table: 76 operations in 11 groups.
Requests go to the sandbox host, https://payments-api-sandbox.merchantservicedepot.com. Amounts are integers in minor units, so4999 is $49.99. Every page has the endpoint's fields, an example response and a request console in five languages.
Start here
Customers & cards
- POSTCreate customer
/v1/customers - GETRetrieve customer
/v1/customers/{customer_id} - POSTUpdate customer
/v1/customers/{customer_id} - GETList customers
/v1/customers - POSTAdd a card from a token
/v1/payment_methods - GETList saved cards
/v1/payment_methods - POSTSet default card
/v1/payment_methods/{payment_method_id}/default - GETRetrieve card
/v1/payment_methods/{payment_method_id} - DELETEDelete customer
/v1/customers/{customer_id} - DELETEDelete payment method
/v1/payment_methods/{payment_method_id}
Payments
- POSTCreate a payment
/v1/payments - POSTCapture an authorization
/v1/payments/{auth_id}/capture - POSTVoid a payment
/v1/payments/{payment_id}/void - POSTRefund a payment
/v1/payments/{payment_id}/refund - GETRetrieve a payment
/v1/payments/{payment_id} - GETList payments
/v1/payments - POSTIssue a standalone credit
/v1/credits
Addresses
Plans and subscriptions
Invoices and scheduled collection
- POSTCreate invoice
/v1/invoices - GETRetrieve invoice
/v1/invoices/{invoice_id} - GETDownload invoice PDF
/v1/invoices/{invoice_id}/pdf - POSTSend invoice
/v1/invoices/{invoice_id}/deliveries - GETList invoice deliveries
/v1/invoices/{invoice_id}/deliveries - GETRetrieve invoice delivery
/v1/invoices/{invoice_id}/deliveries/{invoice_delivery_id} - GETInvoice delivery QR code
/v1/invoices/{invoice_id}/deliveries/{invoice_delivery_id}/qr - GETList invoices
/v1/invoices - POSTSchedule invoice collection
/v1/invoices/{invoice_id}/schedule - POSTCancel scheduled collection
/v1/invoices/{invoice_id}/cancel_schedule - POSTCollect due invoices now (sandbox)
/v1/invoices/scheduler/run - GETList collection attempts
/v1/invoices/{invoice_id}/attempts - POSTVoid invoice
/v1/invoices/{invoice_id}/void
Recurring invoices
- POSTCreate recurring invoice
/v1/recurring_invoices - GETRetrieve recurring invoice
/v1/recurring_invoices/{recurring_invoice_id} - GETList recurring invoices
/v1/recurring_invoices - POSTUpdate recurring invoice
/v1/recurring_invoices/{recurring_invoice_id} - POSTPause recurring invoice
/v1/recurring_invoices/{recurring_invoice_id}/pause - POSTResume recurring invoice
/v1/recurring_invoices/{recurring_invoice_id}/resume - POSTCancel recurring invoice
/v1/recurring_invoices/{recurring_invoice_id}/cancel
Payment links
- POSTCreate payment link
/v1/payment_links - GETRetrieve payment link
/v1/payment_links/{payment_link_id} - GETList payment links
/v1/payment_links - POSTSend payment link
/v1/payment_links/{payment_link_id}/deliveries - GETList link deliveries
/v1/payment_links/{payment_link_id}/deliveries - GETRetrieve link delivery
/v1/payment_links/{payment_link_id}/deliveries/{link_delivery_id} - GETLink delivery QR code
/v1/payment_links/{payment_link_id}/deliveries/{link_delivery_id}/qr - POSTCancel payment link
/v1/payment_links/{payment_link_id}/cancel
Webhook endpoints and deliveries
- POSTCreate webhook endpoint
/v1/webhook_endpoints - GETList webhook endpoints
/v1/webhook_endpoints - GETRetrieve webhook endpoint
/v1/webhook_endpoints/{webhook_endpoint_id} - POSTUpdate webhook endpoint
/v1/webhook_endpoints/{webhook_endpoint_id} - DELETEDelete webhook endpoint
/v1/webhook_endpoints/{webhook_endpoint_id} - GETList deliveries
/v1/webhook_deliveries - GETRetrieve delivery
/v1/webhook_deliveries/{webhook_delivery_id} - POSTReplay delivery
/v1/webhook_deliveries/{webhook_delivery_id}/replay