POST /api/v1/auth/token{
"success": true,
"data": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9....",
"exp": 1748422939
},
"trace_id": "b12d9cfe-6dc2-4d91-8d63-xxxx"
}<HTTP_METHOD>\n
<FULL_URL_WITHOUT_QUERY_PARAMS>\n
<CANONICAL_JSON_BODY>HTTP_METHOD — e.g., POST or GET, UPPERCASEFULL_URL_WITHOUT_QUERY_PARAMS — the full request URL without query parametershttps://pay.deficopay.com/api/v1/deposits/fiat/initiateCANONICAL_JSON_BODY — the JSON body of your request, with all keys sorted alphabetically (recursively), no spaces or line breaks.GET or requests with no body, use an empty string ("").POST
https://pay.deficopay.com/api/v1/deposits/fiat/initiate
{
"amount":20,
"currency":"ARS",
"customer":{
"country":"AR",
"email":"test@gmail.com",
"firstName":"John",
"lastName":"Doe",
"personalId":"12343113"
},
"merchant_notification_url":"https://webhook.site/23e6bd27-0ec6-4158-ae7e-bceb25e68325",
"merchant_transaction_id":"4adb427f-b062-4705-8d95-00c57916cd3a",
"order":{
"description":"Test 30 May 1257",
"id":"339f8edb-cd94-4ea7-a6b6-d7621f57cf92"
},
"payment_method_code":"mercadopago_qr_ar",
"returnUrls":{
"default":"https://webhook.site/23e6bd27-0ec6-4158-ae7e-bceb25e68325"
}
}signature = HMAC_SHA256(api_key, canonical_string)X-API-Signature: <signature>Authorization: Bearer <token> header.token from the response.{
"amount": 20,
"currency": "ARS",
"payment_method_code": "mercadopago_qr_ar",
"merchant_transaction_id": "4adb427f-b062-4705-8d95-00c57916cd3a",
"order": {
"id": "339f8edb-cd94-4ea7-a6b6-d7621f57cf92",
"description": "Test 130 May 1257"
},
"merchant_notification_url": "https://webhook.site/23e6bd27-0ec6-4158-ae7e-bceb25e68325",
"customer": {
"firstName": "John",
"lastName": "Doe",
"personalId": "12343113",
"email": "test@gmail.com",
"country": "AR"
},
"returnUrls": {
"default": "https://webhook.site/23e6bd27-0ec6-4158-ae7e-bceb25e68325"
}
}POST
https://pay.deficopay.com/api/v1/deposits/fiat/initiate
<compact_sorted_json_body>| Header | Value | Example |
|---|---|---|
| Authorization | Bearer <token> | Bearer eyJ0eXAiOiJKV1QiLCJ... |
| X-API-Signature | <signature> | bf8e1a7a395a1ac99e8... |
| Content-Type | application/json |
GET or bodyless requests, the canonical string body part is empty.