Get payee details
Request
Request header:
GET https://api.ipaymy.com/v2/payees/:payee_id
Host: api.ipaymy.com
Accept: application/json
Authorization: Bearer your_access_token
Path Parameters:
payee_id:
- Description: Unique payee id from your list payees
- Type: number
Response
Response body:
{
"data": {
"account_number": "100000000000000",
"amount": 300,
"bank": 6,
"comments": "Test",
"country_id": 1,
"currency_id": 1,
"data": {
"postal_code": "1234",
"address": "Test",
"supporting_documents": [
"tenancy_agreement__1677834720__4712__aXBheW15LnBuZw=="
],
"recipient_contact_name": "",
"recipient_email": "",
"recipient_mobile": "",
"registration_number": "",
"id_type": "sg_postal",
"id_number": "%!s(*string=0xc00027dd80)__awd",
"should_notify_recipient_initiated": false,
"supplier_opt_in": null,
"bank_country_id": 1,
"first_name": null,
"last_name": null,
"bank_raw_name": "Bank of China",
"bank_account_holder_name": null,
"bank_raw_swift_code": "BKCHSGSGXXX",
"unit_number": "awd",
"files": [
{
"key": "tenancy_agreement__1677834720__4712__aXBheW15LnBuZw==",
"name": "ipaymy.png",
"size": 4712,
"url": "https://api-test.ipaymy.com/v2/files/tenancy_agreement__1677834720__4712__aXBheW15LnBuZw=="
}
]
},
"id": 43447,
"is_international": false,
"is_unsupported": false,
"is_wp_mcc": false,
"name": "Test Crypto",
"purpose_id": 1,
"unsupported_message": ""
}
}
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.