Orders
Get order details
Fetches a specific order by UUID.
GET
/
orders
/
{id}
Get order details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/orders/{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/orders/{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/orders/{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/orders/{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{
"order": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identifier": "<string>",
"total_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"shipping_amount": 123,
"currency": "USD",
"description": "<string>",
"po_number": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"due_date": "2023-12-25",
"scheduled": true,
"issued_at": "2023-11-07T05:31:56Z",
"invoiced": true,
"recipient": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"display_name": "<string>"
},
"line_items": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"quantity": "2.0",
"net_amount": 123,
"discount_bps": 123,
"unit": "each"
}
],
"invoice": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}⌘I
Get order details
curl --request GET \
--url https://api.staging.streamlinedpayments.com/api/v1/orders/{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/orders/{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/orders/{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/orders/{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{
"order": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"identifier": "<string>",
"total_amount": 123,
"tax_amount": 123,
"discount_amount": 123,
"shipping_amount": 123,
"currency": "USD",
"description": "<string>",
"po_number": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"due_date": "2023-12-25",
"scheduled": true,
"issued_at": "2023-11-07T05:31:56Z",
"invoiced": true,
"recipient": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"display_name": "<string>"
},
"line_items": [
{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"quantity": "2.0",
"net_amount": 123,
"discount_bps": 123,
"unit": "each"
}
],
"invoice": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}
}