Skip to content

Res Diary Payments

Confirm Resdiary Payment

{"openapi":"3.1.0","info":{"title":"Bookline Partner API","version":"1.12.9"},"security":[{"APIKeyHeader":[]}],"components":{"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"apikey"}},"schemas":{"ConfirmPaymentRequest":{"properties":{"bookingReference":{"type":"string","title":"Bookingreference"},"bookingToken":{"type":"string","title":"Bookingtoken"},"paymentMethodId":{"type":"string","title":"Paymentmethodid"},"intentType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Intenttype"},"paymentIntentId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Paymentintentid"}},"type":"object","required":["bookingReference","bookingToken","paymentMethodId"],"title":"ConfirmPaymentRequest","description":"Payload sent by web-app's /pay/resdiary page (camelCase)."},"ConfirmPaymentResponse":{"properties":{"status":{"type":"string","title":"Status"},"bookingStatus":{"type":"string","title":"Bookingstatus"},"bookingReference":{"type":"string","title":"Bookingreference"}},"type":"object","required":["status","bookingStatus","bookingReference"],"title":"ConfirmPaymentResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"paths":{"/{partner_id}/payments/confirm":{"post":{"tags":["ResDiary Payments"],"summary":"Confirm Resdiary Payment","operationId":"confirm_resdiary_payment__partner_id__payments_confirm_post","parameters":[{"name":"partner_id","in":"path","required":true,"schema":{"type":"string","title":"Partner Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPaymentRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmPaymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}}}