openapi: 3.2.0 info: title: Tribe Payments Refund API version: 3.0.0 description: 'Operations tagged Refund across 2 of this provider''s published API definitions: tribe-payments-trb-cc-api-merchant-api-credit-card-callback-v3.json, tribe-payments-trb-cc-api-merchant-api-credit-card-v3.json. Each path carries the servers of the definition it was published in.' servers: - url: http://127.0.0.1:10010/v3 security: - accountId: [] accountPassword: [] tags: - name: Refund paths: /registered-refund-address: post: tags: - Refund summary: '' operationId: postrefund requestBody: description: Object containing the Refund webhook data content: application/json: schema: $ref: '#/components/schemas/Refund' responses: '200': description: 'Expected response: HTTP status code 200' servers: - url: http://127.0.0.1:10010/v3 /refund: post: tags: - Refund summary: '' operationId: postrefund requestBody: description: "To refund up to the amount of the received payment,\n make a Refund transaction by providing the transaction ID created with a previous [`Capture`](#actions--capture) or [`Sale`](#actions--sale) request.\n After processing the request, a webhook will be sent to your URL specified in the Processing Account setup.\n For more details, refer to the [`Refund`](#webhooks--authorize--registeredrefundaddress) webhook." content: application/json: schema: $ref: '#/components/schemas/Refund_2' responses: '202': description: Accepted content: application/json: schema: $ref: '#/components/schemas/responseSuccess' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/responseError' '401': description: Unauthorized Request content: application/json: schema: $ref: '#/components/schemas/responseUnauthorized' '403': description: Forbidden Request content: application/json: schema: $ref: '#/components/schemas/responseForbidden' servers: - url: http://127.0.0.1:10010/v3 components: schemas: Refund: title: refund properties: webhook: $ref: '#/components/schemas/RefundWebhook' requestId: description: Unique request ID received after a successful initial request for the appropriate action type: string example: a06a73c9-d1d7-11ec-8b58-2e8a68cda573 maxLength: 36 minLength: 36 transaction: $ref: '#/components/schemas/RefundTransaction' type: object required: - requestId RefundTransaction: type: object description: Object containing data of the transaction to be refunded properties: id: description: Transaction ID type: string example: '397209271826453991' maxLength: 16 minLength: 16 date: description: 'Transaction date in UTC. ISO 8601 format: `YYYY-MM-DD hh:ii:ss`' type: string example: '2023-06-01 11:21:15' maxLength: 19 minLength: 19 orderId: description: Custom merchant’s reference type: string example: '32131231231241' maxLength: 32 minLength: 1 parentId: description: Parent transaction ID for `Cancel`, `Capture`, `Incremental authorize`, `Refund`, etc. type: string example: '675689811821989225' maxLength: 19 minLength: 16 code: description: '[`Transaction error code`](#appendix--enum--transaction-error-code)' type: string example: '000' maxLength: 5 minLength: 3 message: description: '[`Transaction error message`](#appendix--transaction-error-code)' type: string example: Transaction successfully completed maxLength: 100 minLength: 1 errorDescription: description: Error description type: string example: null maxLength: 100 minLength: 1 status: description: The transaction status can be `true` (for authorized transactions) or `false` (for unauthorized transactions) type: string example: 'true' maxLength: 20 minLength: 1 amountRemaining: description: Remaining amount type: string example: '77' maxLength: 40 minLength: 1 type: description: '[`Transaction type`](#appendix--enum--transaction-type)' type: integer example: 2 maxLength: 3 minLength: 1 required: - id - date - orderId - code - message - errorDescription - status - amountRemaining - type RefundWebhook: type: object description: Object containing the Refund webhook data properties: id: description: Unique webhook ID type: string example: '545522349919700221' maxLength: 16 minLength: 16 type: description: '[Webhook Type]
| Type | Description |
|---|---|
| transaction_cc | Credit Card Transaction webhook for transaction change event |