Create Payment Collection Payer
Create Payment Collection Payer.
Request
Request header:
POST https://api.ipaymy.com/v2/payment_collections/payer
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"email": "",
"customer_name": "",
"mobile": "",
"mobile_country_code": "",
"phone": "",
"phone_country_code": "",
"registration_number": "",
"company_name": "",
"address_line_1": "",
"address_line_2": "",
"to_create_or_upload_invoice": "",
"payer_data": {
"primary_communication_method": ""
}
}
email:
- Type: string
- Validate: required
customer_name:
- Type: string
- Validate: required
mobile:
- Type: string
mobile_country_code:
- Type: string
phone:
- Type: string
phone_country_code:
- Type: string
registration_number:
- Type: string
company_name:
- Type: string
address_line_1:
- Type: string
address_line_2:
- Type: string
to_create_or_upload_invoice:
create | upload | sms | none
- Type: string
- Validate: required
primary_communication_method:
- Type: string
Response
Response body:
{
"data": {
"id": 1720
},
"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.