error / message | HTTP | Description |
|---|---|---|
authorization_incorrect | 200 | Invalid, expired, or non-whitelisted token |
fail_mandatory_field | 200 | Missing user_id |
user_not_found | 200 | user_id does not exist |
user_banned | 200 | User is banned |
require_kyc | 200 | KYC required. data contains the verification URL |
kyc_reinforced_required | 200 | Failed to create payment, you need complete the onboarding_link to increase your operational amount limits |
limit_exceded | 200 | Quarterly card purchase limit exceeded |
coin_not_supported | 200 | coin_symbol + coin_chain pair is not active in projects |
min_purchase | 200 | Amount below project minimum. message includes the minimum |
method_not_allowed | 200 | Card payment not allowed for certain integrations |
error_payment_creation | 200 | Failed to create payment with the provider (card/psd2) |
curl --location 'https://sandbox.cryptopocket.io/api/createPayment' \
--header 'auth;' \
--header 'Content-Type: application/json' \
--data '{
"user_id": 106,
"external_id": "23232323231",
"fiat_symbol": "EUR",
"fiat_amount": 240,
"coin_symbol": "USDC",
"coin_chain": "polygon",
"wallet": "0xB51b2ce243bb1F88880bC8D287EBbfd7F695Ac55"
}'{
"status": "sucess",
"message": "payment_created",
"data": {
"payment_id": "Fx1ZjLOkQGdPHr1u8Rsy9JvTh",
"iban": "ES6867130002530016234794",
"bic": "PFSSESM1XXX",
"concept": 120037,
"destination_name": "Fintech Payments, S.L"
}
}