Invoices
Get invoice details
Retrieves detailed information about a specific invoice.
GET
/
invoices
/
{id}
Get invoice details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/invoices/{id} \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>'const options = {method: 'GET', headers: {'X-App-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}"
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"invoice": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "USD",
"amount": 123,
"current_open_balance": 123,
"identifier": "<string>",
"due_date": "2023-12-25",
"status": "unpaid",
"billing_status": "manual",
"net_amount": 123,
"aging_status": "<string>",
"is_pending_close": true,
"is_voided": true,
"payment_url": "<string>",
"recipient": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"display_name": "<string>"
},
"transactions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "USD",
"amount": 123,
"fee": 123,
"payment_source": "<string>",
"memo": "<string>",
"payout_date": "2023-12-25",
"net_amount": 123,
"self_recorded": true,
"display_type": "<string>"
}
]
}
}
⌘I
Get invoice details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/invoices/{id} \
--header 'X-Api-Key: <api-key>' \
--header 'X-App-Id: <api-key>'const options = {method: 'GET', headers: {'X-App-Id': '<api-key>', 'X-Api-Key': '<api-key>'}};
fetch('https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}"
headers = {
"X-App-Id": "<api-key>",
"X-Api-Key": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)require 'uri'
require 'net/http'
url = URI("https://api.staging.streamlinedpayments.com/api/v1/invoices/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-App-Id"] = '<api-key>'
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"invoice": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "USD",
"amount": 123,
"current_open_balance": 123,
"identifier": "<string>",
"due_date": "2023-12-25",
"status": "unpaid",
"billing_status": "manual",
"net_amount": 123,
"aging_status": "<string>",
"is_pending_close": true,
"is_voided": true,
"payment_url": "<string>",
"recipient": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"display_name": "<string>"
},
"transactions": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created_at": "2023-11-07T05:31:56Z",
"currency": "USD",
"amount": 123,
"fee": 123,
"payment_source": "<string>",
"memo": "<string>",
"payout_date": "2023-12-25",
"net_amount": 123,
"self_recorded": true,
"display_type": "<string>"
}
]
}
}