Download OpenAPI specification:Download
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemId}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "uid": "abcdefghi123456789"
}
]
}, - "limit": 20,
- "offset": 0,
- "total": 1
}
cartId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched cart.",
- "status": "success",
- "body": {
- "cart": {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "uid": "abcdefghi123456789"
}
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
abandonedCartId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart.",
- "status": "success",
- "body": {
- "cart": {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
}
}
customerId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched cart.",
- "status": "success",
- "body": {
- "cart": {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "uid": "abcdefghi123456789"
}
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
abandonedCartId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart.",
- "status": "success",
- "body": {
- "cart": {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched communication listing.",
- "status": "success",
- "body": {
- "communications": [
- {
- "method": "email",
- "recipient": {
- "joe@example-com": {
- "history": [
- {
- "status": "delivered",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469145600
}
}, - {
- "status": "opened",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469155600
}
}
], - "status": "opened"
}
}, - "service": "mailgun",
- "user": {
- "email": "joe@example.com",
- "uid": "abcdef123456"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
communicationId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched communication.",
- "status": "success",
- "body": {
- "communication": {
- "method": "email",
- "recipient": {
- "joe@example-com": {
- "history": [
- {
- "status": "delivered",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469144600
}
}, - {
- "status": "opened",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469145600
}
}
], - "status": "opened"
}
}, - "service": "mailgun",
- "user": {
- "email": "joe@example.com",
- "uid": "abcdef123456"
}
}
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched communication listing.",
- "status": "success",
- "body": {
- "communications": [
- {
- "method": "email",
- "recipient": {
- "joe@example-com": {
- "history": [
- {
- "status": "delivered",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469145600
}
}, - {
- "status": "opened",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469155600
}
}
], - "status": "opened"
}
}, - "service": "mailgun",
- "user": {
- "email": "joe@example.com",
- "uid": "abcdef123456"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched customer listing.",
- "status": "success",
- "body": {
- "customers": [
- {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "orderCount": 3,
- "orderList": [
- "abc123",
- "abc124",
- "abc125"
], - "phone": "+123456789",
- "provider": "google",
- "spent": 459.43,
- "uid": "abcdefghi123456789"
}
]
}, - "limit": 20,
- "offset": 0,
- "total": 1
}
customerId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched customer listing.",
- "status": "success",
- "body": {
- "customer": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "orderCount": 3,
- "orderList": [
- "abc123",
- "abc124",
- "abc125"
], - "phone": "+123456789",
- "provider": "google",
- "spent": 459.43,
- "uid": "abcdefghi123456789"
}
}
}
customerId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched cart.",
- "status": "success",
- "body": {
- "cart": {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "uid": "abcdefghi123456789"
}
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched abandoned cart listing.",
- "status": "success",
- "body": {
- "carts": [
- {
- "items": {
- "{itemKey}": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": 7.5,
- "type": "product",
}, - "productId": "zyx987",
- "quantity": 2
}
}, - "meta": {
- "created": "2019-03-13T02:43:34Z",
- "itemsId": "abczyx456123",
- "updated": "2019-03-15T02:43:34Z"
}, - "type": "abandoned",
- "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": "+12345678910",
- "uid": "abcdefghi123456789"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched communication listing.",
- "status": "success",
- "body": {
- "communications": [
- {
- "method": "email",
- "recipient": {
- "joe@example-com": {
- "history": [
- {
- "status": "delivered",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469145600
}
}, - {
- "status": "opened",
- "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1469155600
}
}
], - "status": "opened"
}
}, - "service": "mailgun",
- "user": {
- "email": "joe@example.com",
- "uid": "abcdef123456"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched order listing.",
- "status": "success",
- "body": {
- "orders": [
- {
- "audit": {
- "shipping": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}
], - "tax": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef123456789"
}
}, - "company": {
- "city": "Melbourne",
- "country": "AU",
- "lines": [
- "Level 2/696 Bourke Street"
], - "postcode": 3000,
- "state": "VIC",
- "name": "Cold & Goji"
}, - "id": "CG-10001",
- "imported": false,
- "key": "abcdef1234567",
- "meta": {
- "created": "2018-05-17T09:44:40Z"
}, - "order": {
- "addresses": {
- "billing": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}, - "shipping": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}
}, - "contact": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910
}, - "items": {
- "{itemKey}": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$100.00",
- "unit": "$10.00"
}, - "total": 100,
- "unit": 10
}, - "quantity": 10,
- "sku": "yarn-1234567"
}
}, - "modifiers": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}, - {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "notes": {
- "order": "Please leave the package at the door. Thanks."
}, - "subtotal": {
- "currency": "AUD",
- "formatted": "$100.00",
- "price": 100
}, - "total": {
- "currency": "AUD",
- "formatted": "$117.95",
- "total": 117.95
}
}, - "payment": {
- "card": {
- "brand": "Mastercard",
- "last4": "1234"
}, - "charge": {
- "id": "ch_12345678910"
}, - "cost": {
- "currency": "AUD",
- "formatted": "$117.95",
- "price": 117.95
}, - "id": "ch_12345678910",
- "processor": "stripe",
- "status": "shipped"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
customerId required | string |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched order listing.",
- "status": "success",
- "body": {
- "orders": [
- {
- "audit": {
- "shipping": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}
], - "tax": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef123456789"
}
}, - "company": {
- "city": "Melbourne",
- "country": "AU",
- "lines": [
- "Level 2/696 Bourke Street"
], - "postcode": 3000,
- "state": "VIC",
- "name": "Cold & Goji"
}, - "id": "CG-10001",
- "imported": false,
- "key": "abcdef1234567",
- "meta": {
- "created": "2018-05-17T09:44:40Z"
}, - "order": {
- "addresses": {
- "billing": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}, - "shipping": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}
}, - "contact": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910
}, - "items": {
- "{itemKey}": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$100.00",
- "unit": "$10.00"
}, - "total": 100,
- "unit": 10
}, - "quantity": 10,
- "sku": "yarn-1234567"
}
}, - "modifiers": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}, - {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "notes": {
- "order": "Please leave the package at the door. Thanks."
}, - "subtotal": {
- "currency": "AUD",
- "formatted": "$100.00",
- "price": 100
}, - "total": {
- "currency": "AUD",
- "formatted": "$117.95",
- "total": 117.95
}
}, - "payment": {
- "card": {
- "brand": "Mastercard",
- "last4": "1234"
}, - "charge": {
- "id": "ch_12345678910"
}, - "cost": {
- "currency": "AUD",
- "formatted": "$117.95",
- "price": 117.95
}, - "id": "ch_12345678910",
- "processor": "stripe",
- "status": "shipped"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched order listing.",
- "status": "success",
- "body": {
- "orders": [
- {
- "audit": {
- "shipping": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}
], - "tax": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef123456789"
}
}, - "company": {
- "city": "Melbourne",
- "country": "AU",
- "lines": [
- "Level 2/696 Bourke Street"
], - "postcode": 3000,
- "state": "VIC",
- "name": "Cold & Goji"
}, - "id": "CG-10001",
- "imported": false,
- "key": "abcdef1234567",
- "meta": {
- "created": "2018-05-17T09:44:40Z"
}, - "order": {
- "addresses": {
- "billing": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}, - "shipping": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}
}, - "contact": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910
}, - "items": {
- "{itemKey}": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$100.00",
- "unit": "$10.00"
}, - "total": 100,
- "unit": 10
}, - "quantity": 10,
- "sku": "yarn-1234567"
}
}, - "modifiers": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}, - {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "notes": {
- "order": "Please leave the package at the door. Thanks."
}, - "subtotal": {
- "currency": "AUD",
- "formatted": "$100.00",
- "price": 100
}, - "total": {
- "currency": "AUD",
- "formatted": "$117.95",
- "total": 117.95
}
}, - "payment": {
- "card": {
- "brand": "Mastercard",
- "last4": "1234"
}, - "charge": {
- "id": "ch_12345678910"
}, - "cost": {
- "currency": "AUD",
- "formatted": "$117.95",
- "price": 117.95
}, - "id": "ch_12345678910",
- "processor": "stripe",
- "status": "shipped"
}
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
orderId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched order.",
- "status": "success",
- "body": {
- "order": [
- {
- "audit": {
- "shipping": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}
], - "tax": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "user": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef123456789"
}
}, - "company": {
- "city": "Melbourne",
- "country": "AU",
- "lines": [
- "Level 2/696 Bourke Street"
], - "postcode": 3000,
- "state": "VIC",
- "name": "Cold & Goji"
}, - "id": "CG-10001",
- "imported": false,
- "key": "abcdef1234567",
- "meta": {
- "created": "2018-05-17T09:44:40Z"
}, - "order": {
- "addresses": {
- "billing": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}, - "shipping": {
- "city": "Sydney",
- "country": "AU",
- "lines": [
- "123 Example Street"
], - "postcode": 2000,
- "state": "NSW"
}
}, - "contact": {
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910
}, - "items": {
- "{itemKey}": {
- "available": true,
- "dimensions": {
- "height": 10,
- "length": 5,
- "weight": 50,
- "width": 7
}, - "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$100.00",
- "unit": "$10.00"
}, - "total": 100,
- "unit": 10
}, - "quantity": 10,
- "sku": "yarn-1234567"
}
}, - "modifiers": [
- {
- "cost": {
- "currency": "AUD",
- "formatted": "$7.95",
- "price": 7.95,
- "name": "Auspost Regular",
- "service": {
- "name": "Australia Post Parcel Post",
- "provider": "auspost"
}, - "type": "shipping"
}
}, - {
- "cost": {
- "currency": "AUD",
- "formatted": "$10.00",
- "price": 10
}, - "name": "GST (10%)",
- "rate": 0.1,
- "type": "tax"
}
], - "notes": {
- "order": "Please leave the package at the door. Thanks."
}, - "subtotal": {
- "currency": "AUD",
- "formatted": "$100.00",
- "price": 100
}, - "total": {
- "currency": "AUD",
- "formatted": "$117.95",
- "total": 117.95
}
}, - "payment": {
- "card": {
- "brand": "Mastercard",
- "last4": "1234"
}, - "charge": {
- "id": "ch_12345678910"
}, - "cost": {
- "currency": "AUD",
- "formatted": "$117.95",
- "price": 117.95
}, - "id": "ch_12345678910",
- "processor": "stripe",
- "status": "shipped"
}
}
]
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched product listing.",
- "status": "success",
- "body": {
- "products": [
- {
- "available": true,
- "dimensions": {
- "height": 5,
- "length": 10,
- "weight": 105,
- "width": 10
}, - "id": "abcdef1234567",
- "name": "Ball of Yarn",
- "price": 8.5,
- "type": "product",
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
productId required | string |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched product.",
- "status": "success",
- "body": {
- "product": {
- "available": true,
- "dimensions": {
- "height": 5,
- "length": 10,
- "weight": 105,
- "width": 10
}, - "id": "abcdef1234567",
- "name": "Ball of Yarn",
- "price": 8.5,
- "type": "product",
}
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report listing.",
- "status": "success",
- "body": {
- "reports": [
- {
- "day": "01",
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "day",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report listing.",
- "status": "success",
- "body": {
- "reports": [
- {
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "month",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report listing.",
- "status": "success",
- "body": {
- "reports": [
- {
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "year",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
year required | integer |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report listing.",
- "status": "success",
- "body": {
- "reports": [
- {
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "month",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
year required | integer |
month required | integer |
limit | integer [ 1 .. 250 ] Default: 20 The number of objects to list. |
offset | integer Default: 0 The number of objects to skip at the beginning of the list. |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report listing.",
- "status": "success",
- "body": {
- "reports": [
- {
- "day": "01",
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "day",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
], - "limit": 20,
- "offset": 0,
- "total": 1
}
}
year required | integer |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report.",
- "status": "success",
- "body": {
- "report": {
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "year",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
}
}
year required | integer |
month required | integer |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report.",
- "status": "success",
- "body": {
- "report": {
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "month",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
}
}
year required | integer |
month required | integer |
day required | integer |
CG-API-Key required | string Private API Key for the Commerce instance. |
{- "message": "Successfully fetched report.",
- "status": "success",
- "body": {
- "report": {
- "day": "01",
- "month": "01",
- "orders": [
- "abcdef1234567"
], - "timestamp": {
- "_nanoseconds": 0,
- "_seconds": 1546300800
}, - "top": {
- "client": [
- {
- "amount": 117.95,
- "email": "joe@example.com",
- "name": "Joe Smith",
- "phone": 12345678910,
- "provider": [
- "google"
], - "uid": "abcdef1234567"
}
], - "product": [
- {
- "amount": 100,
- "count": 10,
- "properties": {
- "id": "zyx987",
- "name": "Ball of yarn",
- "price": {
- "currency": "AUD",
- "formatted": {
- "total": "$10.00",
- "unit": "$10.00"
}, - "total": 10,
- "unit": 10
}, - "sku": "yarn-1234567"
}
}
]
}, - "total": {
- "amount": 117.95,
- "count": 1,
- "refund": 0,
- "shipping": 7.95,
- "tax": {
- "additional": 10,
- "included": 0
}
}, - "type": "day",
- "users": {
- "new": 1,
- "registered": 1
}, - "year": "2019"
}
}
}