Payments Processing Rental
POST /v4.1/payments/{paymentOrderId}/paid
Endpoint Explanation:
This endpoint marks a payment as successfully paid for a rental contract. You provide details about the payment including which contract and invoice it's for, when the payment was made, the payment method used, and the amount collected.
- Request (cURL)
- Request Payload (JSON)
curl -X PUT https://api.rc.saas.bolttech.asia/v4.1/payments/{paymentOrderId}/paid \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"paymentOrderId": "1faafad-9737-48a2-b3fc-2c963f8def8a",
"contractId": "8e7b3c92-5a14-4d35-9f76-12db44c87591",
"invoiceId": "INV-2025-0512",
"externalTransactionId": "EXT-PAY-78965412",
"providerTransactionNumber": "TR-9876543210",
"paymentDateTime": "2025-05-14T12:35:42Z",
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "STRIPE",
"amount": 1250.0
}'
{
"paymentOrderId": "1faafad-9737-48a2-b3fc-2c963f8def8a",
"contractId": "8e7b3c92-5a14-4d35-9f76-12db44c87591",
"invoiceId": "INV-2025-0512",
"externalTransactionId": "EXT-PAY-78965412",
"providerTransactionNumber": "TR-9876543210",
"paymentDateTime": "2025-05-14T12:35:42Z",
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "STRIPE",
"amount": 1250.0
}
- Response Payload (JSON)
{
"paymentOrderId": "1faafad-9737-48a2-b3fc-2c963f8def8a",
"contractId": "8e7b3c92-5a14-4d35-9f76-12db44c87591",
"invoiceId": "INV-2025-0512",
"externalTransactionId": "EXT-PAY-78965412",
"providerTransactionNumber": "TR-9876543210",
"paymentDateTime": "2025-05-14T12:35:42Z",
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "STRIPE",
"amount": 1250.0
}
POST /v4.1/payments/{paymentOrderId}/failed
Endpoint Explanation:
This endpoint records when a payment collection attempt was unsuccessful. It's similar to the payment endpoint but is used when a payment attempt fails, allowing the system to track failed collection attempts.
- Request (cURL)
- Request Payload (JSON)
curl -X PUT https://api.rc.saas.bolttech.asia/v4.1/payments/{paymentOrderId}/paid \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"paymentOrderId": "1faafad-9737-48a2-b3fc-2c963f8def8a",
"contractId": "8e7b3c92-5a14-4d35-9f76-12db44c87591",
"invoiceId": "INV-2025-0512",
"externalTransactionId": "EXT-PAY-78965412",
"providerTransactionNumber": "TR-9876543210",
"paymentDateTime": "2025-05-14T12:35:42Z",
"paymentMethod": "CREDIT_CARD",
"paymentProvider": "STRIPE",
"amount": 1250.0
}'
{
{
"paymentOrderId": "1faafad-5737-48a2-b3fc-2c963f8def8a",
"contractId": "cb9e5a2-1737-42c5-b3fc-3c9e3f8def8a",
"invoiceId": "INV-2025-05143",
"externalTransactionId": "EXT-TRX-5678901",
"billingTransactionNumber": "BTN-98765432",
"collectionDate": "2025-05-14T10:45:22Z",
"paymentMethod": "DIRECT_DEBIT",
"paymentProvider": "ADYEN"
}
}
- Response Payload (JSON)
{
// To be included
}