Retrieve an Invoice
users
transfers
payout-links
payments
payment-intents
payment-customers
checkout-sessions
accounts-payable
- GETList all vendors
- POSTCreate a vendor
- GETGet vendor details
- DELDelete a vendor
- GETList all payment methods for a vendor
- POSTCreate a payment method for a vendor
- GETGet vendor payment method details
- DELDelete a vendor payment method
- GETList all payables
- POSTCreate a payable
- POSTCreate a payable from a file
- GETGet payable details
- PATCHUpdate a payable
- POSTUpload file to the payable
- DELDelete file from the payable
- POSTCancel a payable
- POSTSubmit a payable for approval
- POSTApprove a payable
- POSTReject a payable
- POSTPay a payable
- GETList all approval policies
- POSTCreate an approval policy
- DELDelete an approval policy
- PATCHUpdate priority of an approval policy
- GETList all approvers for api app
apps
- GETList all Apps
- POSTCreate an App
- GETRetrieve an App
- GETRetrieve an App's Compliance Information
- PUTUpdate an App's Compliance Information
- GETGet App ACH Account
- PUTAdd App ACH Account
- POSTDeposit Funds into App Wallet
- POSTWithdraw Funds From App Wallet
- POSTRefresh compliance flow
- POSTUpdate an application's settings
payment-methods
Retrieve an Invoice
All requests to the /v2/invoice/*
endpoints must include both the
client_id
and api_key
as detailed in the
Authentication document.
Get an invoice by its ID
Method
Make a request to /v2/invoice/get/
Request Example
curl https://pls.senddotssandbox.com/invoice/get/8f246ca0-4ade-4296-bab4-5a6d37d9af10 \
-H "Authorization: Basic <TOKEN>"
response = {
"success": true,
"invoice": {
"id": "8f246ca0-4ade-4296-bab4-5a6d37d9af10",
"payer": null,
"api_app": {
"id": "b7a00ae2-e638-4d66-9d46-adf38d810cde",
"name": "Zappy",
"user_id": 2
},
"amount": 800,
"expiry": "2020-12-09T00:40:51.107Z",
"status": "created",
"link": "https://www.senddotssandbox.com/invoice/8f246ca0-4ade-4296-bab4-5a6d37d9af10",
"items": [
{
"name": "Pikachu Digital Pet",
"unit_amount": 250,
"quantity": 1,
"description": "A little Pikachu for your desktop"
},
{
"name": "Charmander Digital Pet",
"unit_amount": 225,
"quantity": 2,
"description": "A ferocius Charmander for your desktop"
}
],
"breakdown": {
"items_total": 700,
"tax": 100,
"shipping": 0
},
"requested_information": {
"shipping_address": null
},
"metadata": {
"zappy_user_id": "61f8c2f8263e340016f4d4e8"
}
}
}
Was this page helpful?
On this page