Cash-on-delivery metrics
Outcome counts, upsell revenue per currency, the estimated shipping cost avoided, a daily trend, and why any confirmations never reached a customer. Defaults to the trailing 30 days. shippingSaved.estimatedMinor is null when the store has not supplied an average shipping cost — treat that as unknown, not zero. Requires the read:cod permission.
Authorization
BearerAuth read:codIn: header
Scope: read:cod
Path Parameters
Query Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/agents/string/cod-confirmations/metrics"{
"agentId": "string",
"range": {
"startDate": "string",
"endDate": "string"
},
"summary": {
"total": 0,
"confirmed": 0,
"cancelled": 0,
"awaiting": 0,
"changeRequested": 0,
"expired": 0,
"suppressed": 0,
"confirmationRate": 0
},
"upsellRevenue": [
{
"currency": "string",
"upsellRevenueMinor": 0,
"upsellCount": 0
}
],
"shippingSaved": {
"estimatedMinor": 0,
"cancelledBeforeShipping": 0,
"averageShippingCostMinor": 0,
"currency": "string"
},
"series": [
{
"date": "string",
"confirmed": 0,
"cancelled": 0,
"awaiting": 0
}
],
"suppressionReasons": [
{
"reason": "string",
"count": 0
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"issues": [
{
"path": "string",
"message": "string"
}
]
}List cash-on-delivery confirmations GET
List cash-on-delivery order confirmations, newest first, paged with `limit`/`offset` and filterable by `status` and an inclusive `startDate`/`endDate` range (YYYY-MM-DD). Buyer phone numbers are never returned. Requires the `read:cod` permission.
Get a cash-on-delivery confirmation GET
Read one cash-on-delivery confirmation: its order reference, state, decision time, any requested change, and any accepted add-on amount. Buyer phone numbers are never returned. Requires the `read:cod` permission.