curl --request POST \
--url https://api.nuwebgroup.com/v1/orders/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"topups": [
{
"currencyId": 4,
"customerId": 23,
"amount": 4500,
"date": "2022-02-24T14:22:44.000000Z",
"uuid": "fee5481d-1de3-46eb-b5b6-ab99199f55bc",
"paymentMethod": "cash",
"latitude": "37.3942380845",
"longitude": "-122.1501381570",
"user_id": 1,
"source": {
"type": "nfc_tag",
"id": "F2DA2BC"
}
}
],
"purchases": [
{
"currencyId": 4,
"customerId": 23,
"amount": 4500,
"date": "2022-02-24T14:22:44.000000Z",
"uuid": "fee5481d-1de3-46eb-b5b6-ab99199f55bc",
"paymentMethod": "cash",
"latitude": "37.3942380845",
"longitude": "-122.1501381570",
"user_id": 1,
"source": {
"type": "nfc_tag",
"id": "F2DA2BC"
},
"items": [
{
"id": 6,
"price": 1250,
"refunded": true
}
]
}
],
"cashouts": [
{
"currencyId": 4,
"customerId": 23,
"amount": 4500,
"date": "2022-02-24T14:22:44.000000Z",
"uuid": "fee5481d-1de3-46eb-b5b6-ab99199f55bc",
"source": {
"type": "nfc_tag",
"id": "F2DA2BC"
}
}
]
}
'