Skip to content

Commit

Permalink
docs: Invite-to-pay docs
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Nov 18, 2023
1 parent 4e7ad17 commit 2bf48e5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions api.planx.uk/modules/pay/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,24 @@ components:
format: uuid
required: true
schemas:
InviteToPayRequest:
content:
application/json:
schema:
type: object
properties:
payeeEmail:
type: string
format: email
payeeName:
type: string
applicantName:
type: string
sessionPreviewKeys:
type: array
items:
type: array
items: string
CreatePaymentRequest:
description: |
Payment response for the GovPay API
Expand Down Expand Up @@ -335,3 +353,14 @@ paths:
"200":
$ref: "#/components/responses/FetchPaymentResponse"
/invite-to-pay/{sessionId}:
post:
summary: Generate a payment request
tags:
- pay
parameters:
- $ref: "#/components/parameters/sessionId"
requestBody:
$ref: "#/components/schemas/InviteToPayRequest"
responses:
"200":
$ref: "#/components/responses/CreatePaymentResponse"

0 comments on commit 2bf48e5

Please sign in to comment.