LettrLabs API
API ReferenceOrders

Retrieve financial data from order ids

Retrieve financial data from order ids

GET
/v1/order/transaction

Retrieve financial data from order ids

X-API-KEY<token>

In: header

Query Parameters

Id*string

Comma-separated list of campaign ids.

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/order/transaction?Id=string"
{  "profile": {    "id": 0,    "aadId": "1cbad290-069a-4527-be23-a0c144b5302d",    "email": "string",    "firstName": "string",    "lastName": "string",    "company": "string",    "created": "2019-08-24T14:15:22Z",    "shouldProcessQrCodes": true  },  "payload": {    "orderId": 0,    "status": "string",    "orders": [      {        "orderId": 0,        "status": "string",        "volume": 0,        "totalPrice": 0.1,        "costPerPiece": 0.1,        "email": "string",        "product": "string",        "orderStatus": "string",        "orderUpdatedDate": "2019-08-24T14:15:22Z",        "paidDate": "2019-08-24T14:15:22Z",        "profileId": 0,        "isCredit": true,        "transactionType": "string",        "transactionSubType": "string",        "createdDate": "2019-08-24T14:15:22Z",        "detail": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "discount": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "transactions": [          {            "id": 0,            "orderId": 0,            "customerSubscriptionId": 0,            "amount": 0.1,            "description": "string",            "createdDate": "2019-08-24T14:15:22Z",            "updatedDate": "2019-08-24T14:15:22Z",            "profileId": 0,            "transactionType": "string",            "transactionSubType": "string",            "isCredit": true,            "recipientSearchId": 0,            "recipientEnrichmentOrderId": 0,            "radiusMailOrderId": 0,            "hailTraceOrderId": 0          }        ]      }    ]  },  "errors": [    "string"  ],  "hasErrors": true,  "warnings": [    "string"  ],  "hasWarnings": true,  "metadata": {    "property1": null,    "property2": null  }}
{  "profile": {    "id": 0,    "aadId": "1cbad290-069a-4527-be23-a0c144b5302d",    "email": "string",    "firstName": "string",    "lastName": "string",    "company": "string",    "created": "2019-08-24T14:15:22Z",    "shouldProcessQrCodes": true  },  "payload": {    "orderId": 0,    "status": "string",    "orders": [      {        "orderId": 0,        "status": "string",        "volume": 0,        "totalPrice": 0.1,        "costPerPiece": 0.1,        "email": "string",        "product": "string",        "orderStatus": "string",        "orderUpdatedDate": "2019-08-24T14:15:22Z",        "paidDate": "2019-08-24T14:15:22Z",        "profileId": 0,        "isCredit": true,        "transactionType": "string",        "transactionSubType": "string",        "createdDate": "2019-08-24T14:15:22Z",        "detail": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "discount": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "transactions": [          {            "id": 0,            "orderId": 0,            "customerSubscriptionId": 0,            "amount": 0.1,            "description": "string",            "createdDate": "2019-08-24T14:15:22Z",            "updatedDate": "2019-08-24T14:15:22Z",            "profileId": 0,            "transactionType": "string",            "transactionSubType": "string",            "isCredit": true,            "recipientSearchId": 0,            "recipientEnrichmentOrderId": 0,            "radiusMailOrderId": 0,            "hailTraceOrderId": 0          }        ]      }    ]  },  "errors": [    "string"  ],  "hasErrors": true,  "warnings": [    "string"  ],  "hasWarnings": true,  "metadata": {    "property1": null,    "property2": null  }}
{  "profile": {    "id": 0,    "aadId": "1cbad290-069a-4527-be23-a0c144b5302d",    "email": "string",    "firstName": "string",    "lastName": "string",    "company": "string",    "created": "2019-08-24T14:15:22Z",    "shouldProcessQrCodes": true  },  "payload": {    "orderId": 0,    "status": "string",    "orders": [      {        "orderId": 0,        "status": "string",        "volume": 0,        "totalPrice": 0.1,        "costPerPiece": 0.1,        "email": "string",        "product": "string",        "orderStatus": "string",        "orderUpdatedDate": "2019-08-24T14:15:22Z",        "paidDate": "2019-08-24T14:15:22Z",        "profileId": 0,        "isCredit": true,        "transactionType": "string",        "transactionSubType": "string",        "createdDate": "2019-08-24T14:15:22Z",        "detail": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "discount": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "transactions": [          {            "id": 0,            "orderId": 0,            "customerSubscriptionId": 0,            "amount": 0.1,            "description": "string",            "createdDate": "2019-08-24T14:15:22Z",            "updatedDate": "2019-08-24T14:15:22Z",            "profileId": 0,            "transactionType": "string",            "transactionSubType": "string",            "isCredit": true,            "recipientSearchId": 0,            "recipientEnrichmentOrderId": 0,            "radiusMailOrderId": 0,            "hailTraceOrderId": 0          }        ]      }    ]  },  "errors": [    "string"  ],  "hasErrors": true,  "warnings": [    "string"  ],  "hasWarnings": true,  "metadata": {    "property1": null,    "property2": null  }}
{  "profile": {    "id": 0,    "aadId": "1cbad290-069a-4527-be23-a0c144b5302d",    "email": "string",    "firstName": "string",    "lastName": "string",    "company": "string",    "created": "2019-08-24T14:15:22Z",    "shouldProcessQrCodes": true  },  "payload": {    "orderId": 0,    "status": "string",    "orders": [      {        "orderId": 0,        "status": "string",        "volume": 0,        "totalPrice": 0.1,        "costPerPiece": 0.1,        "email": "string",        "product": "string",        "orderStatus": "string",        "orderUpdatedDate": "2019-08-24T14:15:22Z",        "paidDate": "2019-08-24T14:15:22Z",        "profileId": 0,        "isCredit": true,        "transactionType": "string",        "transactionSubType": "string",        "createdDate": "2019-08-24T14:15:22Z",        "detail": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "discount": {          "basePrice": 0.1,          "doubleSided": 0.1,          "postagePrice": 0.1,          "extraText": 0.1,          "expedited": 0.1        },        "transactions": [          {            "id": 0,            "orderId": 0,            "customerSubscriptionId": 0,            "amount": 0.1,            "description": "string",            "createdDate": "2019-08-24T14:15:22Z",            "updatedDate": "2019-08-24T14:15:22Z",            "profileId": 0,            "transactionType": "string",            "transactionSubType": "string",            "isCredit": true,            "recipientSearchId": 0,            "recipientEnrichmentOrderId": 0,            "radiusMailOrderId": 0,            "hailTraceOrderId": 0          }        ]      }    ]  },  "errors": [    "string"  ],  "hasErrors": true,  "warnings": [    "string"  ],  "hasWarnings": true,  "metadata": {    "property1": null,    "property2": null  }}