Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cancel payout order endpoint to API #74

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions _build/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5337,6 +5337,95 @@ paths:
summary: Get Payout Order
tags:
- Payout Orders
/payout_orders/{id}/cancel:
put:
description: Cancel a payout Order resource that corresponds to a payout order
ID.
operationId: cancelPayoutOrderById
parameters:
- description: Identifier of the resource
example: 6307a60c41de27127515a575
in: path
name: id
required: true
schema:
type: string
- description: Use for knowing which language to use
examples:
es:
summary: for spanish request/response
value: es
en:
summary: for english request/response
value: en
in: header
name: Accept-Language
required: false
schema:
default: es
enum:
- es
- en
type: string
responses:
"200":
content:
application/vnd.conekta-v2.1.0+json:
schema:
$ref: '#/components/schemas/payout_order_response'
description: successful operation
"401":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- message: Please include your access key in your request.
param: null
code: conekta.errors.authentication.missing_key
log_id: 507f1f77bcf86cd799439011
object: error
type: authentication_error
schema:
$ref: '#/components/schemas/error'
description: authentication error
"404":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- message: The resource was not found.
param: null
code: conekta.errors.resource_not_found.entity
debug_message: The object Webhook "641b1d5662d7e00001eaa46b" could
not be found.
log_id: 641b6c253cd9a50001514fae
object: error
type: resource_not_found_error
schema:
$ref: '#/components/schemas/error'
description: not found entity
"500":
content:
application/vnd.conekta-v2.1.0+json:
example:
details:
- debug_message: There was a runtime error and Conekta engineers have
been notified.
message: There was a runtime error and Conekta engineers have been
notified.
param: null
code: conekta.errors.api.system.general_failure
object: error
type: api_error
log_id: 641b6f2b3cd9a50001515098
schema:
$ref: '#/components/schemas/error'
description: internal server error
security:
- bearerAuth: []
summary: Cancel Payout Order
tags:
- Payout Orders
/checkouts:
get:
description: Returns a list of links generated by the merchant
Expand Down
2 changes: 2 additions & 0 deletions api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ paths:
$ref: "./resources/payout_orders/payout_orders.yml"
/payout_orders/{id}:
$ref: "./resources/payout_orders/get_payout_order.yml"
/payout_orders/{id}/cancel:
$ref: "./resources/payout_orders/cancel_payout_order.yml"
/checkouts:
$ref: "./resources/checkouts/checkouts.yml"
/checkouts/{id}:
Expand Down
24 changes: 24 additions & 0 deletions resources/payout_orders/cancel_payout_order.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
put:
tags:
- Payout Orders
operationId: cancelPayoutOrderById
summary: Cancel Payout Order
description: 'Cancel a payout Order resource that corresponds to a payout order ID.'
responses:
'200':
description: successful operation
content:
application/vnd.conekta-v2.1.0+json:
schema:
$ref: '../../schemas/payout_orders/payout_order_response.yml'
401:
$ref: '../errors/401.yml'
404:
$ref: '../errors/404.yml'
500:
$ref: '../errors/500.yml'
security:
- bearerAuth: []
parameters:
- $ref: '../../parameters/commons/path_param/id.yml'
- $ref: '../../parameters/commons/headers/accept_language.yml'
Loading