diff --git a/openapi/resource-server.yaml b/openapi/resource-server.yaml index cdcce449..1f79a26b 100644 --- a/openapi/resource-server.yaml +++ b/openapi/resource-server.yaml @@ -155,6 +155,7 @@ paths: examples: Create incoming payment for $25 to pay invoice INV2022-02-0137: value: + walletAddress: 'https://openpayments.guide/alice/' incomingAmount: value: '2500' assetCode: USD @@ -332,6 +333,7 @@ paths: examples: Create an outgoing payment based on a quote: value: + walletAddress: 'https://openpayments.guide/alice/' quoteId: 'https://openpayments.guide/quotes/ab03296b-0c8b-4776-b94e-7ee27d868d4d' metadata: externalRef: INV2022-02-0137 @@ -678,6 +680,20 @@ paths: $ref: '#/components/responses/403' '404': description: Incoming Payment Not Found + requestBody: + content: + application/json: + schema: + type: object + additionalProperties: false + properties: + walletAddress: + type: string + description: The URL of the wallet address that should receive the incoming payment. + examples: + Complete incoming payment for https://openpayments.guide/alice: + value: + walletAddress: 'https://openpayments.guide/alice/' description: |- A client with the appropriate permissions MAY mark a non-expired **incoming payment** as `completed` indicating that the client is not going to make any further payments toward this **incoming payment**, even though the full `incomingAmount` may not have been received.