Get the currently authenticated merchant's IPS onboarding status
Self-service counterpart of the admin status endpoint — resolves the merchant from the bearer token. Gate consumers (payment widget, merchant portal) should key on the computed `onboarded` field. Latency-optimized: a locally recorded successful onboarding answers without the live Central Bank lookup; only unproven merchants pay for the CAS round-trip.
This endpoint needs your API key
Send it as a bearer token in the Authorization header. A request without one is answered with 401. See Authentication for where to find your key and how to keep it secret.
Request
curl -X GET "https://api.leapa.co/v2/ips/onboard-merchant/status" \
-H "Authorization: Bearer $LEAPA_API_KEY" \
-H "Accept: application/json"Response
OK
{
"merchant_id": "mer_1b47d0e9ca",
"onboarded": false,
"local_status": "success",
"ips_customer_id": "cus_3d8e51fa20",
"ips_alias_id": "+25779123456",
"ips_account_id": "acc_62f3a8d15b",
"ips_account_id_test": "00012345678901",
"mobile": "string",
"leapa_balance_account_id": "acc_62f3a8d15b",
"last_error": "string",
"cas_customer_exists": false,
"cas_customer_status": "string",
"cas_record_id": "string",
"cas_alias_count": 0,
"cas_account_count": 0
}Response
application/json
merchant_idstringonboardedbooleanlocal_statusstringAllowed values:successpartialfailedips_customer_idstringips_alias_idstringips_account_idstringips_account_id_teststringmobilestringleapa_balance_account_idstringlast_errorstringcas_customer_existsbooleancas_customer_statusstringcas_record_idstringcas_alias_countinteger<int32>cas_account_countinteger<int32>
Status codes
200OK400Bad request401Unauthorized402Payment required403Forbidden404Not found428Precondition required500Server error