Request
Curl
Response
Success
Parameters
id mandatory
: string Unique identifier of the Payment Link.
Parameters
accept_partial
: boolean Indicates whether customers can make partial payments using the Payment Link. Possible values:
true: Customer can make partial payments.false(default): Customer cannot make partial payments.
amount
: integer Amount to be paid using the Payment Link. Must be in the smallest unit of the currency. For example, if you want to receive a payment of , you must enter the value 30000. In the case of three decimal currencies, such as KWD, BHD and OMR, to refund a payment of 295.991, pass the value as 295990. And in the case of zero decimal currencies such as JPY, to refund a payment of 295, pass the value as 295.
Errors
cannot cancel or expire an already paid/partially paid link- code: 400
- description: When you try to cancel/expire a Payment Link which is already paid or partially paid.
- solution: Ensure that the Payment Link is in the
createdstate to cancel the Payment Link.
- code: 400
- description: When you try to cancel/expire a payment link which has expired or cancelled.
- solution: Ensure the Payment Link you want to cancel is in the
createdstate.
- code: 400
- description: The Payment Link does not belong to the requestor business, or it doesn’t exist.
- solution: Ensure that the Payment Link is valid and belongs to the requestor business.
- code: 4xx
- description: There is a mismatch between the API credentials passed in the API call and the API credentials generated on the Dashboard.
- solution: Ensure that the API Keys are active and entered correctly. Also, make sure there are no white-spaces before or after the keys.