Update favorite payment
Request
Request header:
PUT https://api.ipaymy.com/v2/payment_metadata/:payment_id
Host: api.ipaymy.com
Accept: application/json
Path Parameters:
payment_id:
- Description: Unique payment id from your list payments
- Type: number
Request body:
{
"is_favourite": true
}
is_favourite:
- Type: boolean
- Validate: required
Response
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.