cURL
curl --request POST \ --url https://app.sosmednext.com/api/v1/refill \ --header 'Content-Type: application/json' \ --data ' { "order": 123, "orders": "<string>" } '
Mengajukan permintaan refill untuk pesanan yang memiliki garansi refill.
refill: true
"1010,1011,1012"
Catatan: Gunakan salah satu parameter order atau orders, jangan keduanya bersamaan.
order
orders
curl -X POST \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"order": 9210}' \ "https://app.sosmednext.com/api/v1/refill"
{ "refill": "1" }
curl -X POST \ -H "X-Api-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"orders": "9210,9211,9212"}' \ "https://app.sosmednext.com/api/v1/refill"
[ { "order": 9210, "refill": 1 }, { "order": 9211, "refill": 2 }, { "order": 9212, "refill": { "error": "Service does not support refill" } } ]
{ "error": "Order not found" }