Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
{
"price_token": "{{price_token}}",
"currency_code": "GBP",
"external_id": "HYAQA0171",
"items": [
{
"sku": "GAG",
"amount": 1
}
]
}
curl --location --request POST 'https://api.staging.mintedconnect.com/partner/order/digital/buy' \
--header 'api-version: 2' \
--header 'api-version;' \
--header 'x-client-id;' \
--header 'Accept-Language: tr' \
--header 'Content-Type: application/json' \
--data-raw '{
"price_token": "",
"currency_code": "GBP",
"external_id": "HYAQA0171",
"items": [
{
"sku": "GAG",
"amount": 1
}
]
}'
{
"data": {
"order_code": [
"9YMEK5RB"
],
"guid": [
"71E174B7-C7AD-47FB-836E-3895FF41D4F5"
],
"price": 559.4,
"tax": 0,
"total": 559.4,
"order_at": "2023-05-31 03:16:45",
"orders": [
{
"guid": "71E174B7-C7AD-47FB-836E-3895FF41D4F5",
"order_code": "9YMEK5RB",
"external_id": "HYAQA0171v96o",
"type": "Buy",
"price": 559.4,
"tax": 0,
"total": 559.4,
"currency_rate": 1,
"currency_total": 559.4,
"status_name": "Pending",
"order_at": "31-05-2023 03:16",
"currency_code": "GBP",
"items": [
{
"product_id": 3000001,
"product_name": "Gold - Digital storage",
"spot_price": 50.85,
"price": 55.94,
"tax_rate": 0,
"tax": 0,
"amount": 10,
"total": 559.4,
"sku": "GAU"
}
],
"customer": null
}
]
},
"success": true,
"code": 0,
"message": ""
}