Get a buying group order
curl --request GET \
--url https://app.churningtracker.com/api/v1/buying-group-orders/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.churningtracker.com/api/v1/buying-group-orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.churningtracker.com/api/v1/buying-group-orders/{id}"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "dashboard",
"orderDate": "2023-12-25",
"orderTime": "14:30:00",
"retailer": "<string>",
"orderNumber": "<string>",
"retailerAccount": "<string>",
"subtotal": 1,
"shipping": 1,
"tax": 1,
"discount": 1,
"total": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 1,
"cardEarnRate": 123
}
],
"notes": "<string>",
"cashback": {
"platform": "<string>",
"status": "<string>",
"rewardType": "<string>",
"rewardAmount": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"buyingGroup": "bfmr",
"status": "purchased",
"expectedPayout": 1,
"trackingNumbers": [
{
"trackingNumber": "<string>",
"carrier": "usps",
"itemCount": 123
}
],
"orderLineItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"model": "<string>",
"unitPrice": 1,
"quantity": 123,
"expectedUnitPayout": 1
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}Buying group orders
Get a buying group order
GET
/
buying-group-orders
/
{id}
Get a buying group order
curl --request GET \
--url https://app.churningtracker.com/api/v1/buying-group-orders/{id} \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>'const options = {
method: 'GET',
headers: {'x-api-key': '<api-key>', 'x-api-secret': '<api-key>'}
};
fetch('https://app.churningtracker.com/api/v1/buying-group-orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.churningtracker.com/api/v1/buying-group-orders/{id}"
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "dashboard",
"orderDate": "2023-12-25",
"orderTime": "14:30:00",
"retailer": "<string>",
"orderNumber": "<string>",
"retailerAccount": "<string>",
"subtotal": 1,
"shipping": 1,
"tax": 1,
"discount": 1,
"total": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 1,
"cardEarnRate": 123
}
],
"notes": "<string>",
"cashback": {
"platform": "<string>",
"status": "<string>",
"rewardType": "<string>",
"rewardAmount": 123
},
"createdAt": "2023-11-07T05:31:56Z",
"buyingGroup": "bfmr",
"status": "purchased",
"expectedPayout": 1,
"trackingNumbers": [
{
"trackingNumber": "<string>",
"carrier": "usps",
"itemCount": 123
}
],
"orderLineItems": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"model": "<string>",
"unitPrice": 1,
"quantity": 123,
"expectedUnitPayout": 1
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"issues": [
{
"path": "orderLineItems.0.unitPrice",
"message": "<string>"
}
]
}
}