FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
ameliabooking
/
vendor
/
square
/
square
/
doc
/
models
Edit File: create-refund-response.md
# Create Refund Response Defines the fields that are included in the response body of a request to the [CreateRefund](api-endpoint:Transactions-CreateRefund) endpoint. One of `errors` or `refund` is present in a given response (never both). ## Structure `CreateRefundResponse` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | getErrors(): ?array | setErrors(?array errors): void | | `refund` | [`?Refund`](../../doc/models/refund.md) | Optional | Represents a refund processed for a Square transaction. | getRefund(): ?Refund | setRefund(?Refund refund): void | ## Example (as JSON) ```json { "refund": { "additional_recipients": [ { "amount_money": { "amount": 10, "currency": "USD" }, "description": "Application fees", "location_id": "057P5VYJ4A5X1", "receivable_id": "ISu5xwxJ5v0CMJTQq7RvqyMF" } ], "amount_money": { "amount": 100, "currency": "USD" }, "created_at": "2016-02-12T00:28:18Z", "id": "b27436d1-7f8e-5610-45c6-417ef71434b4-SW", "location_id": "18YC4JDH91E1H", "reason": "some reason", "status": "PENDING", "tender_id": "MtZRYYdDrYNQbOvV7nbuBvMF", "transaction_id": "KnL67ZIwXCPtzOrqj0HrkxMF", "processing_fee_money": { "amount": 112, "currency": "BBD" } }, "errors": [ { "category": "MERCHANT_SUBSCRIPTION_ERROR", "code": "MAP_KEY_LENGTH_TOO_LONG", "detail": "detail6", "field": "field4" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", "code": "MAP_KEY_LENGTH_TOO_LONG", "detail": "detail6", "field": "field4" } ] } ```
Save
Back