Get profile
Request
Request header:
GET https://api.ipaymy.com/v2/my_profile
Host: api.ipaymy.com
Accept: application/json
Authorization: Bearer your_access_token
Response
Response body:
{
"data": {
"available_acquirers": [
{
"id": 82,
"name": "Worldpay",
"label": "CARD_BRAND_VISA_LABEL",
"card_brand_id": 2,
"is_dynamic_mcc": false,
"is_international_payment": true
},
{
"id": 82,
"name": "Worldpay",
"label": "CARD_BRAND_MASTERCARD_LABEL",
"card_brand_id": 3,
"is_dynamic_mcc": false,
"is_international_payment": true
},
{
"id": 4,
"name": "Stripe",
"label": "CARD_BRAND_CHINA_UNIONPAY_LABEL",
"card_brand_id": 5,
"is_dynamic_mcc": false,
"is_international_payment": false
},
{
"id": 82,
"name": "Worldpay",
"label": "CARD_BRAND_AMEX_LABEL",
"card_brand_id": 4,
"is_dynamic_mcc": false,
"is_international_payment": false
}
],
"can_access_crypto_payment": true,
"created_at": "2021-06-03T07:08:22.662376Z",
"email": "example@ipaymy.com",
"first_name": "Alice",
"last_name": "Bob",
"has_active_program": false,
"has_id_verification": false,
"has_incorporation_date": true,
"has_wallex_payment": true,
"hmac": "56487e449ef530bdddcda479aa15390f468e769e6abda6be1c898286ee9a4303",
"mobile_country_id": 1,
"mobile_number": "1234567",
"prefilled_company": null,
"setting_required": {
"required": "000010000100000001001000000000001000",
"values": {
"be_paid_tnc_confirmation": false,
"credit_program_offer_v1_enabled": false,
"payment_interest": "Both",
"referrer": "https://sg.ipaymy.com/login",
"register_url": "https://sg.ipaymy.com/register"
}
},
"wallex_kyc_status": 7
},
"error": 0
}
Response codes:
- 200: Good stuff, and the response body should be easy to parse.
- 422: Typically malformed JSON, such as an integer in place of the required alphanumeric string, or a missing key. Check the response body for further details.