Create Collected Invoice Item
Create Collected Invoice Item.
Request
Request header:
POST https://api.ipaymy.com/v2/payment_collections/invoice_item
Host: api.ipaymy.com
Accept: application/json
Request body:
{
"name": "",
"tax_id": 0,
"unit_price": 0,
"discount": 0.0,
"discount_type": "",
"description": ""
}
name:
- Type: string
- Validate: required
tax_id:
- Type: number
- Validate: required
unit_price:
- Type: number
- Validate: required
discount:
- Type: number
- Validate: required
discount_type:
percentage | amount
- Type: string
- Validate: required
description:
- Type: string
- Validate: required
Response
Response body:
{
"data": {
"id": 690
},
"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.