{"openapi":"3.1.0","info":{"title":"Payments Portal","description":"This portal/API provides customer self-service payment handling for non-Direct-Debit transactions","version":"0.1.0"},"paths":{"/healthz":{"get":{"tags":["Health"],"summary":"Health check","description":"We're alive/booting, don't kill us","operationId":"health_check_healthz_get","responses":{"200":{"description":"Service is ready to use","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Check Healthz Get"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"}}}},"/readyz":{"get":{"tags":["Health"],"summary":"Ready check","description":"Ensuring we are ready to service requests","operationId":"ready_check_readyz_get","responses":{"200":{"description":"Service is ready to use","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ready Check Readyz Get"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"}}}},"/oneoff/choices/{ident}":{"get":{"tags":["Payments"],"summary":"Payment Choices","operationId":"payment_choices_oneoff_choices__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/thankyou/{ident}":{"get":{"tags":["Payments"],"summary":"Payment Success","operationId":"payment_thankyou_oneoff_thankyou__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/error":{"get":{"tags":["Payments"],"summary":"Payment Link Error","operationId":"payment_link_error_oneoff_error_get","responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"}}}},"/oneoff/expired":{"get":{"tags":["Payments"],"summary":"Payment Link Expired","operationId":"payment_link_expired_oneoff_expired_get","responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"}}}},"/oneoff/card/{ident}":{"get":{"tags":["Payments"],"summary":"One-off Card Payments","description":"Renders the payment page for card one-off payments","operationId":"payment_oneoff_card_oneoff_card__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}},{"name":"error_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},{"name":"error_message","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/cardform/{ident}":{"get":{"tags":["Payments"],"summary":"One-off Card Payments (Payment Forms)","description":"Renders the payment page for card one-off payments using Zuora Payment Forms.","operationId":"payment_oneoff_cardform_oneoff_cardform__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}},{"name":"error_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},{"name":"error_message","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/cardform/{ident}/session":{"post":{"tags":["Payments"],"summary":"Create Payment Session","description":"Create a Zuora payment session for the Payment Forms flow.","operationId":"create_cardform_session_oneoff_cardform__ident__session_post","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSessionRequest"}}}},"responses":{"200":{"description":"Returns a payment session token","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSessionResponse"}}}},"403":{"description":"Invalid signature"},"500":{"description":"Service is not ready or unable to work correctly"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/bacs/landing/{ident}":{"get":{"tags":["Payments"],"summary":"Payment Choices","operationId":"bacs_landing_oneoff_bacs_landing__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/bacs/{ident}":{"get":{"tags":["Payments"],"summary":"One-off BACS Payments","description":"Renders the payment page for bacs one-off payments","operationId":"payment_oneoff_bacs_oneoff_bacs__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}},{"name":"error_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},{"name":"error_message","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oneoff/bacs/{ident}/redirect":{"get":{"tags":["Payments"],"summary":"One-off BACS Payments","description":"Redirects to the appropriate flow","operationId":"payment_oneoff_bacs_redirect_oneoff_bacs__ident__redirect_get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","title":"Ident"}},{"name":"s","in":"query","required":true,"schema":{"type":"string","title":"S"}},{"name":"i","in":"query","required":true,"schema":{"type":"string","title":"I"}},{"name":"use_existing_account","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Use Existing Account"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}},{"name":"error_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code"}},{"name":"error_message","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}}],"responses":{"200":{"description":"Service is ready to use","content":{"text/html":{"schema":{"type":"string"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"502":{"description":"Service is not ready or unable to work correctly - upstream issues"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/links/oneoff/card":{"post":{"tags":["Links"],"summary":"Generate one-off card payment link","description":"Generate a link for a one-off payment","operationId":"link_generate_oneoff_card_links_oneoff_card_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"account_number_or_id","in":"query","required":true,"schema":{"type":"string","title":"Account Number Or Id"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Returns a URI","content":{"application/json":{"schema":{"type":"string","title":"Response Link Generate Oneoff Card Links Oneoff Card Post"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/links/oneoff/cardform":{"post":{"tags":["Links"],"summary":"Generate one-off card payment form link","description":"Generate a link for a one-off payment using Zuora Payment Forms","operationId":"link_generate_oneoff_cardform_links_oneoff_cardform_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"account_number_or_id","in":"query","required":true,"schema":{"type":"string","title":"Account Number Or Id"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Returns a URI","content":{"application/json":{"schema":{"type":"string","title":"Response Link Generate Oneoff Cardform Links Oneoff Cardform Post"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/links/oneoff/choices":{"post":{"tags":["Links"],"summary":"Generate one-off payment choices link","description":"Generate a link for a one-off payment","operationId":"link_generate_oneoff_choices_links_oneoff_choices_post","security":[{"APIKeyHeader":[]}],"parameters":[{"name":"account_number_or_id","in":"query","required":true,"schema":{"type":"string","title":"Account Number Or Id"}},{"name":"amount","in":"query","required":false,"schema":{"type":"number","default":0.0,"title":"Amount"}}],"responses":{"200":{"description":"Returns a URI","content":{"application/json":{"schema":{"type":"string","title":"Response Link Generate Oneoff Choices Links Oneoff Choices Post"}}}},"500":{"description":"Service is not ready or unable to work correctly"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/apple-developer-merchantid-domain-association":{"get":{"summary":"Apple Merchant Id","operationId":"apple_merchant_id__well_known_apple_developer_merchantid_domain_association_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PaymentSessionRequest":{"properties":{"s":{"type":"string","title":"S"},"i":{"type":"string","title":"I"},"amount":{"type":"number","title":"Amount","default":0.0}},"type":"object","required":["s","i"],"title":"PaymentSessionRequest"},"PaymentSessionResponse":{"properties":{"token":{"type":"string","title":"Token"}},"type":"object","required":["token"],"title":"PaymentSessionResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-Zzoomm-API-Auth"}}}}