Create a buying group order
curl --request POST \
--url https://app.churningtracker.com/api/v1/buying-group-orders \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--data '
{
"orderDate": "2026-10-01",
"retailer": "Best Buy",
"orderNumber": "BBY01-123456",
"buyingGroup": "bfmr",
"status": "purchased",
"orderLineItems": [
{
"description": "iPad Air",
"unitPrice": 59999,
"quantity": 2,
"model": "MV273LL/A",
"expectedUnitPayout": 62000
}
],
"orderTime": "14:30",
"shipping": 1,
"tax": 4800,
"discount": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 123,
"cardEarnRate": 0
}
],
"retailerAccount": "<string>",
"notes": "<string>",
"redemptionCodes": [
{
"code": "<string>",
"pin": "<string>",
"notes": "<string>",
"brand": "<string>",
"purpose": "<string>",
"value": 1,
"expirationDate": "2023-12-25",
"isPersonal": true
}
]
}
'const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
orderDate: '2026-10-01',
retailer: 'Best Buy',
orderNumber: 'BBY01-123456',
buyingGroup: 'bfmr',
status: 'purchased',
orderLineItems: [
{
description: 'iPad Air',
unitPrice: 59999,
quantity: 2,
model: 'MV273LL/A',
expectedUnitPayout: 62000
}
],
orderTime: '14:30',
shipping: 1,
tax: 4800,
discount: 1,
payments: [
{
creditCardId: '<string>',
subCreditCardId: '<string>',
amount: 123,
cardEarnRate: 0
}
],
retailerAccount: '<string>',
notes: '<string>',
redemptionCodes: [
{
code: '<string>',
pin: '<string>',
notes: '<string>',
brand: '<string>',
purpose: '<string>',
value: 1,
expirationDate: '2023-12-25',
isPersonal: true
}
]
})
};
fetch('https://app.churningtracker.com/api/v1/buying-group-orders', 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"
payload = {
"orderDate": "2026-10-01",
"retailer": "Best Buy",
"orderNumber": "BBY01-123456",
"buyingGroup": "bfmr",
"status": "purchased",
"orderLineItems": [
{
"description": "iPad Air",
"unitPrice": 59999,
"quantity": 2,
"model": "MV273LL/A",
"expectedUnitPayout": 62000
}
],
"orderTime": "14:30",
"shipping": 1,
"tax": 4800,
"discount": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 123,
"cardEarnRate": 0
}
],
"retailerAccount": "<string>",
"notes": "<string>",
"redemptionCodes": [
{
"code": "<string>",
"pin": "<string>",
"notes": "<string>",
"brand": "<string>",
"purpose": "<string>",
"value": 1,
"expirationDate": "2023-12-25",
"isPersonal": True
}
]
}
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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>"
}
]
}
}{
"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
Create a buying group order
POST
/
buying-group-orders
Create a buying group order
curl --request POST \
--url https://app.churningtracker.com/api/v1/buying-group-orders \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--data '
{
"orderDate": "2026-10-01",
"retailer": "Best Buy",
"orderNumber": "BBY01-123456",
"buyingGroup": "bfmr",
"status": "purchased",
"orderLineItems": [
{
"description": "iPad Air",
"unitPrice": 59999,
"quantity": 2,
"model": "MV273LL/A",
"expectedUnitPayout": 62000
}
],
"orderTime": "14:30",
"shipping": 1,
"tax": 4800,
"discount": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 123,
"cardEarnRate": 0
}
],
"retailerAccount": "<string>",
"notes": "<string>",
"redemptionCodes": [
{
"code": "<string>",
"pin": "<string>",
"notes": "<string>",
"brand": "<string>",
"purpose": "<string>",
"value": 1,
"expirationDate": "2023-12-25",
"isPersonal": true
}
]
}
'const options = {
method: 'POST',
headers: {
'x-api-key': '<api-key>',
'x-api-secret': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
orderDate: '2026-10-01',
retailer: 'Best Buy',
orderNumber: 'BBY01-123456',
buyingGroup: 'bfmr',
status: 'purchased',
orderLineItems: [
{
description: 'iPad Air',
unitPrice: 59999,
quantity: 2,
model: 'MV273LL/A',
expectedUnitPayout: 62000
}
],
orderTime: '14:30',
shipping: 1,
tax: 4800,
discount: 1,
payments: [
{
creditCardId: '<string>',
subCreditCardId: '<string>',
amount: 123,
cardEarnRate: 0
}
],
retailerAccount: '<string>',
notes: '<string>',
redemptionCodes: [
{
code: '<string>',
pin: '<string>',
notes: '<string>',
brand: '<string>',
purpose: '<string>',
value: 1,
expirationDate: '2023-12-25',
isPersonal: true
}
]
})
};
fetch('https://app.churningtracker.com/api/v1/buying-group-orders', 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"
payload = {
"orderDate": "2026-10-01",
"retailer": "Best Buy",
"orderNumber": "BBY01-123456",
"buyingGroup": "bfmr",
"status": "purchased",
"orderLineItems": [
{
"description": "iPad Air",
"unitPrice": 59999,
"quantity": 2,
"model": "MV273LL/A",
"expectedUnitPayout": 62000
}
],
"orderTime": "14:30",
"shipping": 1,
"tax": 4800,
"discount": 1,
"payments": [
{
"creditCardId": "<string>",
"subCreditCardId": "<string>",
"amount": 123,
"cardEarnRate": 0
}
],
"retailerAccount": "<string>",
"notes": "<string>",
"redemptionCodes": [
{
"code": "<string>",
"pin": "<string>",
"notes": "<string>",
"brand": "<string>",
"purpose": "<string>",
"value": 1,
"expirationDate": "2023-12-25",
"isPersonal": True
}
]
}
headers = {
"x-api-key": "<api-key>",
"x-api-secret": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, 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>"
}
]
}
}{
"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>"
}
]
}
}Authorizations
Body
application/json