curl --request PUT \
--url https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_id}/payments/{id}/confirm \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"payment": {
"payment_provider": "upi",
"status": "successful",
"vpa_address": "test@example",
"notes": "Paid"
}
}
'{
"id": 123,
"identifier": "your-external-payment-id",
"status": "successful",
"amount": 100,
"currency": "USD"
}Confirm payment
Marks a payment as successful or rejected for Cash or UPI. Call this after the client has paid.
curl --request PUT \
--url https://{your-subdomain}.neetocal.com/api/external/v1/bookings/{booking_id}/payments/{id}/confirm \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"payment": {
"payment_provider": "upi",
"status": "successful",
"vpa_address": "test@example",
"notes": "Paid"
}
}
'{
"id": 123,
"identifier": "your-external-payment-id",
"status": "successful",
"amount": 100,
"currency": "USD"
}{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
Booking ID (numeric) or booking SID (short ID, up to 10 characters). You can get the booking SID from the Get booking details or List bookings response.
"8sqtzrs"
Payment record ID returned from the Create payment response.
"0fe4f247-ccce-4615-870d-5ca6982bbf77"
Body
Hide child attributes
Hide child attributes
Payment method used (upi or cash).
upi, cash Final status of the payment.
successful, rejected Required for UPI when status is successful. The VPA (Virtual Payment Address) that received the payment. Not used for cash.
"merchant@example"
Optional notes about the payment.
"Optional notes"
Optional performer ID associated with the payment.
Response
OK - Payment confirmed.
Payment record ID. Use this in the confirm endpoint.
"f46c9ddf-221d-4238-afb2-280c1c6b3185"
Your external payment reference ID.
"your-external-payment-id"
Payment status.
successful, authorized, declined, pending, requires_action, requires_confirmation, requires_payment_method, confirmation_pending, initiated, rejected "confirmation_pending"
Payment amount.
"100.0"
Currency code. Follows the ISO 4217 standard.
"USD"