{
  "info": {
    "_postman_id": "5481a61b-9f38-4677-9e24-b80ca59152ce",
    "name": "Square ApplePay Refunds API",
    "description": "Supercharge Square for sellers of every size. Our entire connected commerce platform  from elegant hardware to a rich suite of Square APIs  is yours to build with. Whether youre developing an app or composing a bespoke solution, this is the place to make it happen. \n\nContact Support:\n Name: Square Developer Platform\n Email: developers@squareup.com",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T03:04:33.000Z",
    "updatedAt": "2026-07-28T03:04:33.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-5481a61b-9f38-4677-9e24-b80ca59152ce"
  },
  "item": [
    {
      "name": "v2",
      "item": [
        {
          "name": "refunds",
          "item": [
            {
              "name": "{refund_id}",
              "item": [
                {
                  "name": "Square Get Payment Refund",
                  "id": "5d87ac60-b42b-4d2e-b178-e55f6b5c5fc1",
                  "protocolProfileBehavior": {
                    "disableBodyPruning": true
                  },
                  "request": {
                    "auth": {
                      "type": "oauth2",
                      "oauth2": [
                        {
                          "key": "scope",
                          "value": "ADDON_CONFIGURATIONS_READ ADDON_CONFIGURATIONS_WRITE APPOINTMENTS_ALL_READ APPOINTMENTS_ALL_WRITE APPOINTMENTS_BUSINESS_SETTINGS_READ APPOINTMENTS_READ APPOINTMENTS_WRITE BANK_ACCOUNTS_READ CASH_DRAWER_READ CHANNELS_CREATE CHANNELS_READ CHANNELS_UPDATE CUSTOMERS_READ CUSTOMERS_WRITE DEVICES_READ DEVICE_CREDENTIAL_MANAGEMENT DISPUTES_READ DISPUTES_WRITE EMPLOYEES_READ EMPLOYEES_WRITE GIFTCARDS_READ GIFTCARDS_WRITE INVENTORY_READ INVENTORY_WRITE INVOICES_READ INVOICES_WRITE ITEMS_READ ITEMS_WRITE LOYALTY_READ LOYALTY_WRITE MERCHANT_PROFILE_READ MERCHANT_PROFILE_WRITE ONLINE_STORE_SITE_READ ONLINE_STORE_SNIPPETS_READ ONLINE_STORE_SNIPPETS_WRITE ORDERS_READ ORDERS_WRITE PAYMENTS_READ PAYMENTS_WRITE PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS PAYMENTS_WRITE_IN_PERSON PAYMENTS_WRITE_SHARED_ONFILE PAYOUTS_READ PERMISSION_SETS_READ PERMISSION_SETS_WRITE RESERVATIONS_READ RESERVATIONS_WRITE RESTAURANT_CHECKS_READ SETTLEMENTS_READ SUBSCRIPTIONS_READ SUBSCRIPTIONS_WRITE TIMECARDS_READ TIMECARDS_SETTINGS_READ TIMECARDS_SETTINGS_WRITE TIMECARDS_WRITE VENDOR_READ VENDOR_WRITE",
                          "type": "string"
                        },
                        {
                          "key": "accessTokenUrl",
                          "value": "https://connect.squareup.com/oauth2/token",
                          "type": "string"
                        },
                        {
                          "key": "authUrl",
                          "value": "https://connect.squareup.com/oauth2/authorize",
                          "type": "string"
                        },
                        {
                          "key": "grant_type",
                          "value": "authorization_code",
                          "type": "string"
                        }
                      ]
                    },
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v2/refunds/:refund_id",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v2",
                        "refunds",
                        ":refund_id"
                      ],
                      "variable": [
                        {
                          "id": "00d8f418-d104-49bf-be0e-77fd9ec8299c",
                          "key": "refund_id",
                          "value": "<string>",
                          "description": "(Required) The unique ID for the desired `PaymentRefund`."
                        }
                      ]
                    },
                    "description": "Retrieves a specific refund using the `refund_id`."
                  },
                  "response": [
                    {
                      "id": "acc871bb-3f54-4070-81f4-48ac9766727e",
                      "name": "Success",
                      "originalRequest": {
                        "method": "GET",
                        "header": [
                          {
                            "key": "Accept",
                            "value": "application/json"
                          },
                          {
                            "description": "Added as a part of security scheme: oauth2",
                            "key": "Authorization",
                            "value": "<token>"
                          }
                        ],
                        "url": {
                          "raw": "{{baseUrl}}/v2/refunds/:refund_id",
                          "host": [
                            "{{baseUrl}}"
                          ],
                          "path": [
                            "v2",
                            "refunds",
                            ":refund_id"
                          ],
                          "variable": [
                            {
                              "key": "refund_id"
                            }
                          ]
                        }
                      },
                      "status": "OK",
                      "code": 200,
                      "_postman_previewlanguage": "json",
                      "header": [
                        {
                          "key": "Content-Type",
                          "value": "application/json"
                        }
                      ],
                      "cookie": [],
                      "responseTime": null,
                      "body": "{\n  \"errors\": [\n    {\n      \"category\": \"EXTERNAL_VENDOR_ERROR\",\n      \"code\": \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n      \"detail\": \"<string>\",\n      \"field\": \"<string>\"\n    }\n  ],\n  \"refund\": {\n    \"id\": \"<string>\",\n    \"amount_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"CAD\"\n    },\n    \"status\": \"<string>\",\n    \"location_id\": \"<string>\",\n    \"unlinked\": \"<boolean>\",\n    \"destination_type\": \"<string>\",\n    \"destination_details\": {\n      \"card_details\": {\n        \"card\": {\n          \"id\": \"<string>\",\n          \"card_brand\": \"OTHER_BRAND\",\n          \"last_4\": \"<string>\",\n          \"exp_month\": \"<long>\",\n          \"exp_year\": \"<long>\",\n          \"cardholder_name\": \"<string>\",\n          \"billing_address\": {\n            \"address_line_1\": \"<string>\",\n            \"address_line_2\": \"<string>\",\n            \"address_line_3\": \"<string>\",\n            \"locality\": \"<string>\",\n            \"sublocality\": \"<string>\",\n            \"sublocality_2\": \"<string>\",\n            \"sublocality_3\": \"<string>\",\n            \"administrative_district_level_1\": \"<string>\",\n            \"administrative_district_level_2\": \"<string>\",\n            \"administrative_district_level_3\": \"<string>\",\n            \"postal_code\": \"<string>\",\n            \"country\": \"NL\",\n            \"first_name\": \"<string>\",\n            \"last_name\": \"<string>\"\n          },\n          \"fingerprint\": \"<string>\",\n          \"customer_id\": \"<string>\",\n          \"merchant_id\": \"<string>\",\n          \"reference_id\": \"<string>\",\n          \"enabled\": \"<boolean>\",\n          \"card_type\": \"DEBIT\",\n          \"prepaid_type\": \"UNKNOWN_PREPAID_TYPE\",\n          \"bin\": \"<string>\",\n          \"version\": \"<long>\",\n          \"card_co_brand\": \"AFTERPAY\"\n        },\n        \"entry_method\": \"<string>\",\n        \"auth_result_code\": \"<string>\"\n      },\n      \"cash_details\": {\n        \"seller_supplied_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"TJS\"\n        },\n        \"change_back_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"BHD\"\n        }\n      },\n      \"external_details\": {\n        \"type\": \"<string>\",\n        \"source\": \"<string>\",\n        \"source_id\": \"<string>\"\n      }\n    },\n    \"app_fee_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"AFN\"\n    },\n    \"processing_fee\": [\n      {\n        \"effective_at\": \"<string>\",\n        \"type\": \"<string>\",\n        \"amount_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"CLF\"\n        }\n      }\n    ],\n    \"payment_id\": \"<string>\",\n    \"order_id\": \"<string>\",\n    \"reason\": \"<string>\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\",\n    \"team_member_id\": \"<string>\",\n    \"terminal_refund_id\": \"<string>\"\n  }\n}",
                      "createdAt": "2026-07-28T03:04:33.000Z",
                      "updatedAt": "2026-07-28T03:04:33.000Z",
                      "uid": "35240-acc871bb-3f54-4070-81f4-48ac9766727e"
                    }
                  ],
                  "createdAt": "2026-07-28T03:04:33.000Z",
                  "updatedAt": "2026-07-28T03:04:33.000Z",
                  "uid": "35240-5d87ac60-b42b-4d2e-b178-e55f6b5c5fc1"
                }
              ],
              "id": "a9102c20-9562-477b-8a97-640d8be475c3",
              "createdAt": "2026-07-28T03:04:33.000Z",
              "updatedAt": "2026-07-28T03:04:33.000Z",
              "uid": "35240-a9102c20-9562-477b-8a97-640d8be475c3"
            },
            {
              "name": "Square List Payment Refunds",
              "id": "7d9e6a12-d6cd-4610-9c18-b80b6fd3c5c0",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "auth": {
                  "type": "oauth2",
                  "oauth2": [
                    {
                      "key": "scope",
                      "value": "ADDON_CONFIGURATIONS_READ ADDON_CONFIGURATIONS_WRITE APPOINTMENTS_ALL_READ APPOINTMENTS_ALL_WRITE APPOINTMENTS_BUSINESS_SETTINGS_READ APPOINTMENTS_READ APPOINTMENTS_WRITE BANK_ACCOUNTS_READ CASH_DRAWER_READ CHANNELS_CREATE CHANNELS_READ CHANNELS_UPDATE CUSTOMERS_READ CUSTOMERS_WRITE DEVICES_READ DEVICE_CREDENTIAL_MANAGEMENT DISPUTES_READ DISPUTES_WRITE EMPLOYEES_READ EMPLOYEES_WRITE GIFTCARDS_READ GIFTCARDS_WRITE INVENTORY_READ INVENTORY_WRITE INVOICES_READ INVOICES_WRITE ITEMS_READ ITEMS_WRITE LOYALTY_READ LOYALTY_WRITE MERCHANT_PROFILE_READ MERCHANT_PROFILE_WRITE ONLINE_STORE_SITE_READ ONLINE_STORE_SNIPPETS_READ ONLINE_STORE_SNIPPETS_WRITE ORDERS_READ ORDERS_WRITE PAYMENTS_READ PAYMENTS_WRITE PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS PAYMENTS_WRITE_IN_PERSON PAYMENTS_WRITE_SHARED_ONFILE PAYOUTS_READ PERMISSION_SETS_READ PERMISSION_SETS_WRITE RESERVATIONS_READ RESERVATIONS_WRITE RESTAURANT_CHECKS_READ SETTLEMENTS_READ SUBSCRIPTIONS_READ SUBSCRIPTIONS_WRITE TIMECARDS_READ TIMECARDS_SETTINGS_READ TIMECARDS_SETTINGS_WRITE TIMECARDS_WRITE VENDOR_READ VENDOR_WRITE",
                      "type": "string"
                    },
                    {
                      "key": "accessTokenUrl",
                      "value": "https://connect.squareup.com/oauth2/token",
                      "type": "string"
                    },
                    {
                      "key": "authUrl",
                      "value": "https://connect.squareup.com/oauth2/authorize",
                      "type": "string"
                    },
                    {
                      "key": "grant_type",
                      "value": "authorization_code",
                      "type": "string"
                    }
                  ]
                },
                "method": "GET",
                "header": [
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "url": {
                  "raw": "{{baseUrl}}/v2/refunds?begin_time=<string>&end_time=<string>&sort_order=<string>&cursor=<string>&location_id=<string>&status=<string>&source_type=<string>&limit=<integer>",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v2",
                    "refunds"
                  ],
                  "query": [
                    {
                      "description": "Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339 \nformat.  The range is determined using the `created_at` field for each `PaymentRefund`. \n\nDefault: The current time minus one year.",
                      "key": "begin_time",
                      "value": "<string>"
                    },
                    {
                      "description": "Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC 3339 \nformat.  The range is determined using the `created_at` field for each `PaymentRefund`.\n\nDefault: The current time.",
                      "key": "end_time",
                      "value": "<string>"
                    },
                    {
                      "description": "The order in which results are listed by `PaymentRefund.created_at`:\n- `ASC` - Oldest to newest.\n- `DESC` - Newest to oldest (default).",
                      "key": "sort_order",
                      "value": "<string>"
                    },
                    {
                      "description": "A pagination cursor returned by a previous call to this endpoint.\nProvide this cursor to retrieve the next set of results for the original query.\n\nFor more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).",
                      "key": "cursor",
                      "value": "<string>"
                    },
                    {
                      "description": "Limit results to the location supplied. By default, results are returned\nfor all locations associated with the seller.",
                      "key": "location_id",
                      "value": "<string>"
                    },
                    {
                      "description": "If provided, only refunds with the given status are returned.\nFor a list of refund status values, see [PaymentRefund](entity:PaymentRefund).\n\nDefault: If omitted, refunds are returned regardless of their status.",
                      "key": "status",
                      "value": "<string>"
                    },
                    {
                      "description": "If provided, only returns refunds whose payments have the indicated source type.\nCurrent values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `CASH`, and `EXTERNAL`.\nFor information about these payment source types, see\n[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).\n\nDefault: If omitted, refunds are returned regardless of the source type.",
                      "key": "source_type",
                      "value": "<string>"
                    },
                    {
                      "description": "The maximum number of results to be returned in a single page.\n\nIt is possible to receive fewer results than the specified limit on a given page.\n\nIf the supplied value is greater than 100, no more than 100 results are returned.\n\nDefault: 100",
                      "key": "limit",
                      "value": "<integer>"
                    }
                  ]
                },
                "description": "Retrieves a list of refunds for the account making the request.\n\nResults are eventually consistent, and new refunds or changes to refunds might take several\nseconds to appear.\n\nThe maximum results per page is 100."
              },
              "response": [
                {
                  "id": "82f478be-0a85-4861-9e87-2673adb80ebb",
                  "name": "Success",
                  "originalRequest": {
                    "method": "GET",
                    "header": [
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: oauth2",
                        "key": "Authorization",
                        "value": "<token>"
                      }
                    ],
                    "url": {
                      "raw": "{{baseUrl}}/v2/refunds?begin_time=<string>&end_time=<string>&sort_order=<string>&cursor=<string>&location_id=<string>&status=<string>&source_type=<string>&limit=<integer>",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v2",
                        "refunds"
                      ],
                      "query": [
                        {
                          "description": "Indicates the start of the time range to retrieve each `PaymentRefund` for, in RFC 3339 \nformat.  The range is determined using the `created_at` field for each `PaymentRefund`. \n\nDefault: The current time minus one year.",
                          "key": "begin_time",
                          "value": "<string>"
                        },
                        {
                          "description": "Indicates the end of the time range to retrieve each `PaymentRefund` for, in RFC 3339 \nformat.  The range is determined using the `created_at` field for each `PaymentRefund`.\n\nDefault: The current time.",
                          "key": "end_time",
                          "value": "<string>"
                        },
                        {
                          "description": "The order in which results are listed by `PaymentRefund.created_at`:\n- `ASC` - Oldest to newest.\n- `DESC` - Newest to oldest (default).",
                          "key": "sort_order",
                          "value": "<string>"
                        },
                        {
                          "description": "A pagination cursor returned by a previous call to this endpoint.\nProvide this cursor to retrieve the next set of results for the original query.\n\nFor more information, see [Pagination](https://developer.squareup.com/docs/build-basics/common-api-patterns/pagination).",
                          "key": "cursor",
                          "value": "<string>"
                        },
                        {
                          "description": "Limit results to the location supplied. By default, results are returned\nfor all locations associated with the seller.",
                          "key": "location_id",
                          "value": "<string>"
                        },
                        {
                          "description": "If provided, only refunds with the given status are returned.\nFor a list of refund status values, see [PaymentRefund](entity:PaymentRefund).\n\nDefault: If omitted, refunds are returned regardless of their status.",
                          "key": "status",
                          "value": "<string>"
                        },
                        {
                          "description": "If provided, only returns refunds whose payments have the indicated source type.\nCurrent values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `CASH`, and `EXTERNAL`.\nFor information about these payment source types, see\n[Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).\n\nDefault: If omitted, refunds are returned regardless of the source type.",
                          "key": "source_type",
                          "value": "<string>"
                        },
                        {
                          "description": "The maximum number of results to be returned in a single page.\n\nIt is possible to receive fewer results than the specified limit on a given page.\n\nIf the supplied value is greater than 100, no more than 100 results are returned.\n\nDefault: 100",
                          "key": "limit",
                          "value": "<integer>"
                        }
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"category\": \"PAYMENT_METHOD_ERROR\",\n      \"code\": \"MISSING_ACCOUNT_TYPE\",\n      \"detail\": \"<string>\",\n      \"field\": \"<string>\"\n    }\n  ],\n  \"refunds\": [\n    {\n      \"id\": \"<string>\",\n      \"amount_money\": {\n        \"amount\": \"<long>\",\n        \"currency\": \"NAD\"\n      },\n      \"status\": \"<string>\",\n      \"location_id\": \"<string>\",\n      \"unlinked\": \"<boolean>\",\n      \"destination_type\": \"<string>\",\n      \"destination_details\": {\n        \"card_details\": {\n          \"card\": {\n            \"id\": \"<string>\",\n            \"card_brand\": \"OTHER_BRAND\",\n            \"last_4\": \"<string>\",\n            \"exp_month\": \"<long>\",\n            \"exp_year\": \"<long>\",\n            \"cardholder_name\": \"<string>\",\n            \"billing_address\": {\n              \"address_line_1\": \"<string>\",\n              \"address_line_2\": \"<string>\",\n              \"address_line_3\": \"<string>\",\n              \"locality\": \"<string>\",\n              \"sublocality\": \"<string>\",\n              \"sublocality_2\": \"<string>\",\n              \"sublocality_3\": \"<string>\",\n              \"administrative_district_level_1\": \"<string>\",\n              \"administrative_district_level_2\": \"<string>\",\n              \"administrative_district_level_3\": \"<string>\",\n              \"postal_code\": \"<string>\",\n              \"country\": \"HT\",\n              \"first_name\": \"<string>\",\n              \"last_name\": \"<string>\"\n            },\n            \"fingerprint\": \"<string>\",\n            \"customer_id\": \"<string>\",\n            \"merchant_id\": \"<string>\",\n            \"reference_id\": \"<string>\",\n            \"enabled\": \"<boolean>\",\n            \"card_type\": \"CREDIT\",\n            \"prepaid_type\": \"UNKNOWN_PREPAID_TYPE\",\n            \"bin\": \"<string>\",\n            \"version\": \"<long>\",\n            \"card_co_brand\": \"CLEARPAY\"\n          },\n          \"entry_method\": \"<string>\",\n          \"auth_result_code\": \"<string>\"\n        },\n        \"cash_details\": {\n          \"seller_supplied_money\": {\n            \"amount\": \"<long>\",\n            \"currency\": \"KWD\"\n          },\n          \"change_back_money\": {\n            \"amount\": \"<long>\",\n            \"currency\": \"YER\"\n          }\n        },\n        \"external_details\": {\n          \"type\": \"<string>\",\n          \"source\": \"<string>\",\n          \"source_id\": \"<string>\"\n        }\n      },\n      \"app_fee_money\": {\n        \"amount\": \"<long>\",\n        \"currency\": \"JPY\"\n      },\n      \"processing_fee\": [\n        {\n          \"effective_at\": \"<string>\",\n          \"type\": \"<string>\",\n          \"amount_money\": {\n            \"amount\": \"<long>\",\n            \"currency\": \"TZS\"\n          }\n        }\n      ],\n      \"payment_id\": \"<string>\",\n      \"order_id\": \"<string>\",\n      \"reason\": \"<string>\",\n      \"created_at\": \"<string>\",\n      \"updated_at\": \"<string>\",\n      \"team_member_id\": \"<string>\",\n      \"terminal_refund_id\": \"<string>\"\n    }\n  ],\n  \"cursor\": \"<string>\"\n}",
                  "createdAt": "2026-07-28T03:04:33.000Z",
                  "updatedAt": "2026-07-28T03:04:33.000Z",
                  "uid": "35240-82f478be-0a85-4861-9e87-2673adb80ebb"
                }
              ],
              "createdAt": "2026-07-28T03:04:33.000Z",
              "updatedAt": "2026-07-28T03:04:33.000Z",
              "uid": "35240-7d9e6a12-d6cd-4610-9c18-b80b6fd3c5c0"
            },
            {
              "name": "Square Refund Payment",
              "id": "79470df9-ac93-4ba4-95b4-729f3afb1443",
              "protocolProfileBehavior": {
                "disableBodyPruning": true
              },
              "request": {
                "auth": {
                  "type": "oauth2",
                  "oauth2": [
                    {
                      "key": "scope",
                      "value": "ADDON_CONFIGURATIONS_READ ADDON_CONFIGURATIONS_WRITE APPOINTMENTS_ALL_READ APPOINTMENTS_ALL_WRITE APPOINTMENTS_BUSINESS_SETTINGS_READ APPOINTMENTS_READ APPOINTMENTS_WRITE BANK_ACCOUNTS_READ CASH_DRAWER_READ CHANNELS_CREATE CHANNELS_READ CHANNELS_UPDATE CUSTOMERS_READ CUSTOMERS_WRITE DEVICES_READ DEVICE_CREDENTIAL_MANAGEMENT DISPUTES_READ DISPUTES_WRITE EMPLOYEES_READ EMPLOYEES_WRITE GIFTCARDS_READ GIFTCARDS_WRITE INVENTORY_READ INVENTORY_WRITE INVOICES_READ INVOICES_WRITE ITEMS_READ ITEMS_WRITE LOYALTY_READ LOYALTY_WRITE MERCHANT_PROFILE_READ MERCHANT_PROFILE_WRITE ONLINE_STORE_SITE_READ ONLINE_STORE_SNIPPETS_READ ONLINE_STORE_SNIPPETS_WRITE ORDERS_READ ORDERS_WRITE PAYMENTS_READ PAYMENTS_WRITE PAYMENTS_WRITE_ADDITIONAL_RECIPIENTS PAYMENTS_WRITE_IN_PERSON PAYMENTS_WRITE_SHARED_ONFILE PAYOUTS_READ PERMISSION_SETS_READ PERMISSION_SETS_WRITE RESERVATIONS_READ RESERVATIONS_WRITE RESTAURANT_CHECKS_READ SETTLEMENTS_READ SUBSCRIPTIONS_READ SUBSCRIPTIONS_WRITE TIMECARDS_READ TIMECARDS_SETTINGS_READ TIMECARDS_SETTINGS_WRITE TIMECARDS_WRITE VENDOR_READ VENDOR_WRITE",
                      "type": "string"
                    },
                    {
                      "key": "accessTokenUrl",
                      "value": "https://connect.squareup.com/oauth2/token",
                      "type": "string"
                    },
                    {
                      "key": "authUrl",
                      "value": "https://connect.squareup.com/oauth2/authorize",
                      "type": "string"
                    },
                    {
                      "key": "grant_type",
                      "value": "authorization_code",
                      "type": "string"
                    }
                  ]
                },
                "method": "POST",
                "header": [
                  {
                    "key": "Content-Type",
                    "value": "application/json"
                  },
                  {
                    "key": "Accept",
                    "value": "application/json"
                  }
                ],
                "body": {
                  "mode": "raw",
                  "raw": "{\n  \"idempotency_key\": \"<string>\",\n  \"amount_money\": {\n    \"amount\": \"<long>\",\n    \"currency\": \"MUR\"\n  },\n  \"app_fee_money\": {\n    \"amount\": \"<long>\",\n    \"currency\": \"PGK\"\n  },\n  \"payment_id\": \"<string>\",\n  \"destination_id\": \"<string>\",\n  \"unlinked\": \"<boolean>\",\n  \"location_id\": \"<string>\",\n  \"customer_id\": \"<string>\",\n  \"reason\": \"<string>\",\n  \"payment_version_token\": \"<string>\",\n  \"team_member_id\": \"<string>\",\n  \"cash_details\": {\n    \"seller_supplied_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"MOP\"\n    },\n    \"change_back_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"CZK\"\n    }\n  },\n  \"external_details\": {\n    \"type\": \"<string>\",\n    \"source\": \"<string>\",\n    \"source_id\": \"<string>\"\n  }\n}",
                  "options": {
                    "raw": {
                      "headerFamily": "json",
                      "language": "json"
                    }
                  }
                },
                "url": {
                  "raw": "{{baseUrl}}/v2/refunds",
                  "host": [
                    "{{baseUrl}}"
                  ],
                  "path": [
                    "v2",
                    "refunds"
                  ]
                },
                "description": "Refunds a payment. You can refund the entire payment amount or a\nportion of it. You can use this endpoint to refund a card payment or record a \nrefund of a cash or external payment. For more information, see\n[Refund Payment](https://developer.squareup.com/docs/payments-api/refund-payments)."
              },
              "response": [
                {
                  "id": "89028a6d-4643-4231-97d2-c0f0a358e5ab",
                  "name": "Success",
                  "originalRequest": {
                    "method": "POST",
                    "header": [
                      {
                        "key": "Content-Type",
                        "value": "application/json"
                      },
                      {
                        "key": "Accept",
                        "value": "application/json"
                      },
                      {
                        "description": "Added as a part of security scheme: oauth2",
                        "key": "Authorization",
                        "value": "<token>"
                      }
                    ],
                    "body": {
                      "mode": "raw",
                      "raw": "{\n  \"idempotency_key\": \"<string>\",\n  \"amount_money\": {\n    \"amount\": \"<long>\",\n    \"currency\": \"MUR\"\n  },\n  \"app_fee_money\": {\n    \"amount\": \"<long>\",\n    \"currency\": \"PGK\"\n  },\n  \"payment_id\": \"<string>\",\n  \"destination_id\": \"<string>\",\n  \"unlinked\": \"<boolean>\",\n  \"location_id\": \"<string>\",\n  \"customer_id\": \"<string>\",\n  \"reason\": \"<string>\",\n  \"payment_version_token\": \"<string>\",\n  \"team_member_id\": \"<string>\",\n  \"cash_details\": {\n    \"seller_supplied_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"MOP\"\n    },\n    \"change_back_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"CZK\"\n    }\n  },\n  \"external_details\": {\n    \"type\": \"<string>\",\n    \"source\": \"<string>\",\n    \"source_id\": \"<string>\"\n  }\n}",
                      "options": {
                        "raw": {
                          "headerFamily": "json",
                          "language": "json"
                        }
                      }
                    },
                    "url": {
                      "raw": "{{baseUrl}}/v2/refunds",
                      "host": [
                        "{{baseUrl}}"
                      ],
                      "path": [
                        "v2",
                        "refunds"
                      ]
                    }
                  },
                  "status": "OK",
                  "code": 200,
                  "_postman_previewlanguage": "json",
                  "header": [
                    {
                      "key": "Content-Type",
                      "value": "application/json"
                    }
                  ],
                  "cookie": [],
                  "responseTime": null,
                  "body": "{\n  \"errors\": [\n    {\n      \"category\": \"AUTHENTICATION_ERROR\",\n      \"code\": \"GATEWAY_TIMEOUT\",\n      \"detail\": \"<string>\",\n      \"field\": \"<string>\"\n    }\n  ],\n  \"refund\": {\n    \"id\": \"<string>\",\n    \"amount_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"SLE\"\n    },\n    \"status\": \"<string>\",\n    \"location_id\": \"<string>\",\n    \"unlinked\": \"<boolean>\",\n    \"destination_type\": \"<string>\",\n    \"destination_details\": {\n      \"card_details\": {\n        \"card\": {\n          \"id\": \"<string>\",\n          \"card_brand\": \"JCB\",\n          \"last_4\": \"<string>\",\n          \"exp_month\": \"<long>\",\n          \"exp_year\": \"<long>\",\n          \"cardholder_name\": \"<string>\",\n          \"billing_address\": {\n            \"address_line_1\": \"<string>\",\n            \"address_line_2\": \"<string>\",\n            \"address_line_3\": \"<string>\",\n            \"locality\": \"<string>\",\n            \"sublocality\": \"<string>\",\n            \"sublocality_2\": \"<string>\",\n            \"sublocality_3\": \"<string>\",\n            \"administrative_district_level_1\": \"<string>\",\n            \"administrative_district_level_2\": \"<string>\",\n            \"administrative_district_level_3\": \"<string>\",\n            \"postal_code\": \"<string>\",\n            \"country\": \"LA\",\n            \"first_name\": \"<string>\",\n            \"last_name\": \"<string>\"\n          },\n          \"fingerprint\": \"<string>\",\n          \"customer_id\": \"<string>\",\n          \"merchant_id\": \"<string>\",\n          \"reference_id\": \"<string>\",\n          \"enabled\": \"<boolean>\",\n          \"card_type\": \"UNKNOWN_CARD_TYPE\",\n          \"prepaid_type\": \"UNKNOWN_PREPAID_TYPE\",\n          \"bin\": \"<string>\",\n          \"version\": \"<long>\",\n          \"card_co_brand\": \"UNKNOWN\"\n        },\n        \"entry_method\": \"<string>\",\n        \"auth_result_code\": \"<string>\"\n      },\n      \"cash_details\": {\n        \"seller_supplied_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"MKD\"\n        },\n        \"change_back_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"CZK\"\n        }\n      },\n      \"external_details\": {\n        \"type\": \"<string>\",\n        \"source\": \"<string>\",\n        \"source_id\": \"<string>\"\n      }\n    },\n    \"app_fee_money\": {\n      \"amount\": \"<long>\",\n      \"currency\": \"MXN\"\n    },\n    \"processing_fee\": [\n      {\n        \"effective_at\": \"<string>\",\n        \"type\": \"<string>\",\n        \"amount_money\": {\n          \"amount\": \"<long>\",\n          \"currency\": \"XOF\"\n        }\n      }\n    ],\n    \"payment_id\": \"<string>\",\n    \"order_id\": \"<string>\",\n    \"reason\": \"<string>\",\n    \"created_at\": \"<string>\",\n    \"updated_at\": \"<string>\",\n    \"team_member_id\": \"<string>\",\n    \"terminal_refund_id\": \"<string>\"\n  }\n}",
                  "createdAt": "2026-07-28T03:04:33.000Z",
                  "updatedAt": "2026-07-28T03:04:33.000Z",
                  "uid": "35240-89028a6d-4643-4231-97d2-c0f0a358e5ab"
                }
              ],
              "createdAt": "2026-07-28T03:04:33.000Z",
              "updatedAt": "2026-07-28T03:04:33.000Z",
              "uid": "35240-79470df9-ac93-4ba4-95b4-729f3afb1443"
            }
          ],
          "id": "de2efcd4-20bb-4c58-b284-cb0f4722c23f",
          "createdAt": "2026-07-28T03:04:33.000Z",
          "updatedAt": "2026-07-28T03:04:33.000Z",
          "uid": "35240-de2efcd4-20bb-4c58-b284-cb0f4722c23f"
        }
      ],
      "id": "ec790a0d-f0d9-45f0-ab73-aeb358606d34",
      "createdAt": "2026-07-28T03:04:33.000Z",
      "updatedAt": "2026-07-28T03:04:33.000Z",
      "uid": "35240-ec790a0d-f0d9-45f0-ab73-aeb358606d34"
    }
  ],
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://connect.squareup.com"
    }
  ]
}