Authorization: Digest username=guest, realm="test", nonce="2", uri="/uri", response="***"
{
"price_token": "{{price_token}}",
"type": "buy",
"sku": "BGAU",
"amount": 1.23, // opsiyona bağlı zorunlu alan. (total ile birlikte kullanılamaz)
//"total": 1000 opsiyona bağlı zorunlu alan. (amount ile birlikte kullanılamaz)
//amount veya total ikisinden biri gönderilmesi zorunludur.
}
curl --location --request POST 'https://api.staging.mintedconnect.com/partner/pricecalc' \
--header 'api-version: 3' \
--header 'api-version;' \
--header 'x-client-id;' \
--header 'Accept-Language: tr' \
--header 'Authorization: Digest <parameters>' \
--header 'Content-Type: application/json' \
--data-raw '{
"price_token": "",
"type": "buy",
"sku": "BGAU",
"amount": 1.23, // opsiyona bağlı zorunlu alan. (total ile birlikte kullanılamaz)
//"total": 1000 opsiyona bağlı zorunlu alan. (amount ile birlikte kullanılamaz)
//amount veya total ikisinden biri gönderilmesi zorunludur.
}'
{
"data": {
"price": 3047.96,
"price_token": "5Kpg2ty1opOqn4MjFSIDwZJlkpGHoijz"
},
"success": true,
"code": 0,
"message": ""
}