-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update invoice with failed status, add error_details object, add retr…
…y endpoint on invoice
- Loading branch information
1 parent
ec4c7cb
commit 5fbd131
Showing
6 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
put: | ||
tags: | ||
- invoices | ||
summary: Retry generation of a failed invoice | ||
description: This endpoint is used for retrying to generate a failed invoice. | ||
parameters: | ||
- $ref: '../parameters/lago_invoice_id.yaml' | ||
|
||
operationId: retryInvoice | ||
responses: | ||
'200': | ||
description: Invoice generation has been retried | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../schemas/Invoice.yaml' | ||
'401': | ||
$ref: '../responses/Unauthorized.yaml' | ||
'404': | ||
$ref: '../responses/NotFound.yaml' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
type: object | ||
required: | ||
- lago_id | ||
- error_code | ||
- details | ||
properties: | ||
lago_id: | ||
type: string | ||
format: "uuid" | ||
nullable: true | ||
description: Unique identifier assigned to the error_detail within the Lago application. This ID is exclusively created by Lago and serves as a unique identifier for the error's record within the Lago system. | ||
example: "1a901a90-1a90-1a90-1a90-1a901a901a90" | ||
error_code: | ||
type: string | ||
description: Code that specifies part of the application / connection, where the error originally happened | ||
example: "tax_error" | ||
details: | ||
type: object | ||
description: Key value list of more elaborated error detail, where by the key of error_code an external service error details are stored | ||
example: { tax_error: 'taxDateTooFarInFuture' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters