Update Collected Invoice Item
Update Collected Invoice Item.
Request
Request header:
PUT https://api.ipaymy.com/v2/payment_collections/invoice_item/:item_id
Host: api.ipaymy.com
Accept: application/json
Path Parameters:
item_id:
- Description: Unique invoice item id
- Type: number
Request body:
{
"name": "",
"tax_id": 0,
"unit_price": 0,
"discount": 0,
"discount_type": "",
"description": ""
}
name:
- Type: string
- Validate: required
tax_id:
- Type: number
unit_price:
- Type: number
- Validate: required
discount:
- Type: number
discount_type:
percentage | amount
- Type: string
description:
- Type: string
Response
Response body:
{
"data": "",
"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.