v1
latestOpenAPI 3.1.02026-07-2469193340.0 KBPayments
create payment
post/payto/payments
Request body
Example request
{
"uid": "biz_20221231_G7MQWwkQZIP8vbfH",
"agreement_uid": "Agreement_00012345",
"amount": 2495,
"reference": "INVOICE #1003",
"description": "Payment 1 of 6 for Zeptinghouse Smart Fridge 300L",
"creditor": {
"party_name": "Jane Smith",
"ultimate_party_name": "Jane Smith",
"account_identifier": {
"value": "123456-98765432"
}
},
"creditor_reference": "PYMNT-1003",
"debtor": {
"party_name": "Bob Jean",
"ultimate_party_name": "Bob Jane"
},
"metadata": {
"custom_key": "custom_value"
}
}Response
successful
Example response
{
"data": {
"uid": "biz_20221231_G7MQWwkQZIP8vbfH",
"agreement_uid": "Agreement_00012345",
"source_payto_refund_uid": "Refund_00012345",
"reference": "INVOICE #1003",
"description": "Payment 1 of 6 for Zeptinghouse Smart Fridge 300L",
"creditor": {
"party_name": "Jane Smith",
"ultimate_party_name": "Jane Smith",
"account_identifier": {
"value": "123456-98765432"
}
},
"creditor_reference": "PYMNT-1003",
"debtor": {
"ultimate_party_name": "Bob Jane",
"party_name": "Bob Jean",
"account_identifier": {
"value": "123456-98765432"
}
},
"amount": 2495,
"metadata": {
"custom_key": "custom_value"
},
"failure": {
"title": "Agreement Status Invalid",
"detail": "Contact Zepto for more information - The requested operation cannot be performed for the current status of the agreement",
"code": "MMS.API.9104"
},
"links": {
"self": "https://api.zeptopayments.com/payto/payments/biz_payment_G7MQWwkQZIP8vbfH",
"agreement": "https://api.zeptopayments.com/payto/agreements/biz_agreement_G7MQWwkQZIP8vbfH",
"source_refund": "https://api.zeptopayments.com/payto/refunds/biz_refund_G7MQWwkQZIP8vbfH"
}
}
}