## Rewrapping - Calendly - Airtable - Squareup - PagerDuty - Trello - Miro --------- Co-authored-by: Francisco Liberal <francisco@arcade.dev>
9718 lines
1.1 MiB
9718 lines
1.1 MiB
{
|
|
"name": "UpdatePaymentStatus",
|
|
"fully_qualified_name": "SquareupApi.UpdatePaymentStatus@2.0.0",
|
|
"description": "Update a payment's approved status and details.\n\nUse this tool to update a payment with an APPROVED status, modifying fields like `amount_money` and `tip_money` as necessary.",
|
|
"toolkit": {
|
|
"name": "ArcadeSquareupApi",
|
|
"description": null,
|
|
"version": "2.0.0"
|
|
},
|
|
"input": {
|
|
"parameters": [
|
|
{
|
|
"name": "payment_identifier",
|
|
"required": true,
|
|
"description": "The unique ID of the payment you want to update.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the payment to update."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "payment_id"
|
|
},
|
|
{
|
|
"name": "payment_update_details",
|
|
"required": true,
|
|
"description": "An object detailing the fields to update for a payment, such as `amount_money` and `tip_money`. It must include `idempotency_key` for request uniqueness.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"payment": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique ID for the payment."
|
|
},
|
|
"created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the payment was created, in RFC 3339 format."
|
|
},
|
|
"updated_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the payment was last updated, in RFC 3339 format."
|
|
},
|
|
"amount_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"tip_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"total_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"app_fee_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"approved_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"processing_fee": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"effective_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the fee takes effect, in RFC 3339 format."
|
|
},
|
|
"type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of fee assessed or adjusted. The fee type can be `INITIAL` or `ADJUSTMENT`."
|
|
},
|
|
"amount_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"description": "The processing fees and fee adjustments assessed by Square for this payment."
|
|
},
|
|
"refunded_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether the payment is APPROVED, PENDING, COMPLETED, CANCELED, or FAILED."
|
|
},
|
|
"delay_duration": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The duration of time after the payment's creation when Square automatically applies the\n`delay_action` to the payment. This automatic `delay_action` applies only to payments that\ndo not reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration`\ntime period.\n\nThis field is specified as a time duration, in RFC 3339 format.\n\nNotes:\nThis feature is only supported for card payments.\n\nDefault:\n\n- Card-present payments: \"PT36H\" (36 hours) from the creation time.\n- Card-not-present payments: \"P7D\" (7 days) from the creation time."
|
|
},
|
|
"delay_action": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The action to be applied to the payment when the `delay_duration` has elapsed.\n\nCurrent values include `CANCEL` and `COMPLETE`."
|
|
},
|
|
"delayed_until": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The read-only timestamp of when the `delay_action` is automatically applied,\nin RFC 3339 format.\n\nNote that this field is calculated by summing the payment's `delay_duration` and `created_at`\nfields. The `created_at` field is generated by Square and might not exactly match the\ntime on your local machine."
|
|
},
|
|
"source_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The source type for this payment.\n\nCurrent values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `SQUARE_ACCOUNT`,\n`CASH` and `EXTERNAL`. For information about these payment source types,\nsee [Take Payments](https://developer.squareup.com/docs/payments-api/take-payments)."
|
|
},
|
|
"card_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or\nFAILED."
|
|
},
|
|
"card": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Unique ID for this card. Generated by Square."
|
|
},
|
|
"card_brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"OTHER_BRAND",
|
|
"VISA",
|
|
"MASTERCARD",
|
|
"AMERICAN_EXPRESS",
|
|
"DISCOVER",
|
|
"DISCOVER_DINERS",
|
|
"JCB",
|
|
"CHINA_UNIONPAY",
|
|
"SQUARE_GIFT_CARD",
|
|
"SQUARE_CAPITAL_CARD",
|
|
"INTERAC",
|
|
"EFTPOS",
|
|
"FELICA",
|
|
"EBT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's brand, such as `VISA` or `MASTERCARD`."
|
|
},
|
|
"last_4": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The last 4 digits of the card number."
|
|
},
|
|
"exp_month": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The expiration month of the associated card as an integer between 1 and 12."
|
|
},
|
|
"exp_year": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The four-digit year of the card's expiration date."
|
|
},
|
|
"cardholder_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the cardholder."
|
|
},
|
|
"billing_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"fingerprint": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Intended as a Square-assigned identifier, based\non the card number, to identify the card across multiple locations within a\nsingle application."
|
|
},
|
|
"customer_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "**Required** The ID of a [customer](entity:Customer) to be associated with the card."
|
|
},
|
|
"merchant_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the merchant associated with the card."
|
|
},
|
|
"reference_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional user-defined reference ID that associates this card with\nanother entity in an external system. For example, a customer ID from an\nexternal customer management system."
|
|
},
|
|
"enabled": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether or not a card can be used for payments."
|
|
},
|
|
"card_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CARD_TYPE",
|
|
"CREDIT",
|
|
"DEBIT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's type, such as `CREDIT` or `DEBIT`."
|
|
},
|
|
"prepaid_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_PREPAID_TYPE",
|
|
"NOT_PREPAID",
|
|
"PREPAID"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`."
|
|
},
|
|
"bin": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API\nreturns this field."
|
|
},
|
|
"version": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Current version number of the card. Increments with each card update. Requests to update an\nexisting Card object will be rejected unless the version in the request matches the current\nversion for the Card."
|
|
},
|
|
"card_co_brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN",
|
|
"AFTERPAY",
|
|
"CLEARPAY"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the brand for a co-branded card."
|
|
},
|
|
"issuer_alert": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ISSUER_ALERT_CARD_CLOSED"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the type of issuer alert for a [card on file](entity:Card)."
|
|
},
|
|
"issuer_alert_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the current issuer alert was received and processed, in\nRFC 3339 format.\n\nThis field is present only if there's an active issuer alert."
|
|
},
|
|
"hsa_fsa": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether the card is linked to a Health Savings Account (HSA) or Flexible\nSpending Account (FSA), based on the card BIN."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents the payment details of a card to be used for payments. These\ndetails are determined by the payment token generated by Web Payments SDK."
|
|
},
|
|
"entry_method": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The method used to enter the card's details for the payment. The method can be\n`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`."
|
|
},
|
|
"cvv_status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned from the Card Verification Value (CVV) check. The code can be\n`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`."
|
|
},
|
|
"avs_status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned from the Address Verification System (AVS) check. The code can be\n`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`."
|
|
},
|
|
"auth_result_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned by the card issuer that describes the payment's\nauthorization status."
|
|
},
|
|
"application_identifier": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the application ID identifies the EMV application used for the payment."
|
|
},
|
|
"application_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the human-readable name of the EMV application used for the payment."
|
|
},
|
|
"application_cryptogram": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the cryptogram generated for the payment."
|
|
},
|
|
"verification_method": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the method used to verify the cardholder's identity. The method can be\n`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`."
|
|
},
|
|
"verification_results": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the results of the cardholder verification. The result can be\n`SUCCESS`, `FAILURE`, or `UNKNOWN`."
|
|
},
|
|
"statement_description": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The statement description sent to the card networks.\n\nNote: The actual statement description varies and is likely to be truncated and appended with\nadditional information on a per issuer basis."
|
|
},
|
|
"device_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"device_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued ID of the device."
|
|
},
|
|
"device_installation_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued installation ID for the device."
|
|
},
|
|
"device_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the device set by the seller."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the device that took the payment."
|
|
},
|
|
"card_payment_timeline": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"authorized_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was authorized, in RFC 3339 format."
|
|
},
|
|
"captured_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was captured, in RFC 3339 format."
|
|
},
|
|
"voided_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was voided, in RFC 3339 format."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "The timeline for card payments."
|
|
},
|
|
"refund_requires_card_presence": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether the card must be physically present for the payment to\nbe refunded. If set to `true`, the card must be present."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Reflects the current status of a card payment. Contains only non-confidential information."
|
|
},
|
|
"cash_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"buyer_supplied_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"change_back_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Stores details about a cash payment. Contains only non-confidential information. For more information, see \n[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments)."
|
|
},
|
|
"bank_account_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"bank_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the bank associated with the bank account."
|
|
},
|
|
"transfer_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of the bank transfer. The type can be `ACH` or `UNKNOWN`."
|
|
},
|
|
"account_ownership_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ownership type of the bank account performing the transfer.\nThe type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`."
|
|
},
|
|
"fingerprint": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Uniquely identifies the bank account for this seller and can be used\nto determine if payments are from the same bank account."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The two-letter ISO code representing the country the bank account is located in."
|
|
},
|
|
"statement_description": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The statement description as sent to the bank."
|
|
},
|
|
"ach_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"routing_number": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The routing number for the bank account."
|
|
},
|
|
"account_number_suffix": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The last few digits of the bank account number."
|
|
},
|
|
"account_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of the bank account performing the transfer. The account type can be `CHECKING`,\n`SAVINGS`, or `UNKNOWN`."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about BANK_ACCOUNT type payments."
|
|
},
|
|
"external_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of external payment the seller received. It can be one of the following:\n- CHECK - Paid using a physical check.\n- BANK_TRANSFER - Paid using external bank transfer.\n- OTHER\\_GIFT\\_CARD - Paid using a non-Square gift card.\n- CRYPTO - Paid using a crypto currency.\n- SQUARE_CASH - Paid using Square Cash App.\n- SOCIAL - Paid using peer-to-peer payment applications.\n- EXTERNAL - A third-party application gathered this payment outside of Square.\n- EMONEY - Paid using an E-money provider.\n- CARD - A credit or debit card that Square does not support.\n- STORED_BALANCE - Use for house accounts, store credit, and so forth.\n- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals\n- OTHER - A type not listed here."
|
|
},
|
|
"source": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A description of the external payment source. For example, \n\"Food Delivery Service\"."
|
|
},
|
|
"source_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An ID to associate the payment to its originating source."
|
|
},
|
|
"source_fee_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Stores details about an external payment. Contains only non-confidential information.\nFor more information, see \n[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments)."
|
|
},
|
|
"wallet_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or\n`FAILED`."
|
|
},
|
|
"brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,\n`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`."
|
|
},
|
|
"cash_app_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"buyer_full_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the Cash App account holder."
|
|
},
|
|
"buyer_country_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.\n\nFor possible values, see [Country](entity:Country)."
|
|
},
|
|
"buyer_cashtag": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "$Cashtag of the Cash App account holder."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about `WALLET` type payments with the `brand` of `CASH_APP`."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about `WALLET` type payments. Contains only non-confidential information."
|
|
},
|
|
"buy_now_pay_later_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The brand used for the Buy Now Pay Later payment.\nThe brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`."
|
|
},
|
|
"afterpay_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Email address on the buyer's Afterpay account."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Afterpay payments."
|
|
},
|
|
"clearpay_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Email address on the buyer's Clearpay account."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Clearpay payments."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about a Buy Now Pay Later payment type."
|
|
},
|
|
"square_account_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"payment_source_token": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Unique identifier for the payment source used for this payment."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Square Account payments."
|
|
},
|
|
"location_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the location associated with the payment."
|
|
},
|
|
"order_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the order associated with the payment."
|
|
},
|
|
"reference_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID that associates the payment with an entity in\nanother system."
|
|
},
|
|
"customer_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the customer associated with the payment. If the ID is \nnot provided in the `CreatePayment` request that was used to create the `Payment`, \nSquare may use information in the request \n(such as the billing and shipping address, email address, and payment source) \nto identify a matching customer profile in the Customer Directory. \nIf found, the profile ID is used. If a profile is not found, the \nAPI attempts to create an \n[instant profile](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles). \nIf the API cannot create an \ninstant profile (either because the seller has disabled it or the \nseller's region prevents creating it), this field remains unset. Note that \nthis process is asynchronous and it may take some time before a \ncustomer ID is added to the payment."
|
|
},
|
|
"employee_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "__Deprecated__: Use `Payment.team_member_id` instead.\n\nAn optional ID of the employee associated with taking the payment."
|
|
},
|
|
"team_member_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment."
|
|
},
|
|
"refund_ids": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A list of `refund_id`s identifying refunds for the payment."
|
|
},
|
|
"risk_evaluation": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when payment risk was evaluated, in RFC 3339 format."
|
|
},
|
|
"risk_level": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"PENDING",
|
|
"NORMAL",
|
|
"MODERATE",
|
|
"HIGH"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents fraud risk information for the associated payment.\n\nWhen you take a payment through Square's Payments API (using the `CreatePayment`\nendpoint), Square evaluates it and assigns a risk level to the payment. Sellers\ncan use this information to determine the course of action (for example,\nprovide the goods/services or refund the payment)."
|
|
},
|
|
"terminal_checkout_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID for a Terminal checkout that is associated with the payment."
|
|
},
|
|
"buyer_email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The buyer's email address."
|
|
},
|
|
"billing_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"shipping_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"note": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional note to include when creating a payment."
|
|
},
|
|
"statement_description_identifier": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Additional payment information that gets added to the customer's card statement\nas part of the statement description.\n\nNote that the `statement_description_identifier` might get truncated on the statement description\nto fit the required information including the Square identifier (SQ *) and the name of the\nseller taking the payment."
|
|
},
|
|
"capabilities": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Actions that can be performed on this payment:\n- `EDIT_AMOUNT_UP` - The payment amount can be edited up.\n- `EDIT_AMOUNT_DOWN` - The payment amount can be edited down.\n- `EDIT_TIP_AMOUNT_UP` - The tip amount can be edited up.\n- `EDIT_TIP_AMOUNT_DOWN` - The tip amount can be edited down.\n- `EDIT_DELAY_ACTION` - The delay_action can be edited."
|
|
},
|
|
"receipt_number": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The payment's receipt number.\nThe field is missing if a payment is canceled."
|
|
},
|
|
"receipt_url": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The URL for the payment's receipt.\nThe field is only populated for COMPLETED payments."
|
|
},
|
|
"device_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"device_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued ID of the device."
|
|
},
|
|
"device_installation_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued installation ID for the device."
|
|
},
|
|
"device_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the device set by the seller."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the device that took the payment."
|
|
},
|
|
"application_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"square_product": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"APPOINTMENTS",
|
|
"ECOMMERCE_API",
|
|
"INVOICES",
|
|
"ONLINE_STORE",
|
|
"OTHER",
|
|
"RESTAURANTS",
|
|
"RETAIL",
|
|
"SQUARE_POS",
|
|
"TERMINAL_API",
|
|
"VIRTUAL_TERMINAL"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A list of products to return to external callers."
|
|
},
|
|
"application_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square ID assigned to the application used to take the payment. \nApplication developers can use this information to identify payments that \ntheir application processed. \nFor example, if a developer uses a custom application to process payments, \nthis field contains the application ID from the Developer Dashboard. \nIf a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace) \napplication to process payments, the field contains the corresponding application ID."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the application that took the payment."
|
|
},
|
|
"is_offline_payment": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether or not this payment was taken offline."
|
|
},
|
|
"offline_payment_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"client_created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The client-side timestamp of when the offline payment was created, in RFC 3339 format."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details specific to offline payments."
|
|
},
|
|
"version_token": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Used for optimistic concurrency. This opaque token identifies a specific version of the\n`Payment` object."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a payment processed by the Square API."
|
|
},
|
|
"idempotency_key": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique string that identifies this `UpdatePayment` request. Keys can be any valid string\nbut must be unique for every `UpdatePayment` request.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "An object containing the fields to POST for the request.\n\nSee the corresponding object definition for field details."
|
|
},
|
|
"inferrable": true,
|
|
"http_endpoint_parameter_name": "requestBody"
|
|
}
|
|
]
|
|
},
|
|
"output": {
|
|
"description": "Response from the API endpoint 'UpdatePayment'.",
|
|
"available_modes": [
|
|
"value",
|
|
"error",
|
|
"null"
|
|
],
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"requirements": {
|
|
"authorization": {
|
|
"provider_id": "arcade-squareup",
|
|
"provider_type": "oauth2",
|
|
"id": null,
|
|
"oauth2": {
|
|
"scopes": [
|
|
"PAYMENTS_WRITE"
|
|
]
|
|
}
|
|
},
|
|
"secrets": null,
|
|
"metadata": null
|
|
},
|
|
"deprecation_message": null,
|
|
"metadata": {
|
|
"object_type": "api_wrapper_tool",
|
|
"version": "1.1.0",
|
|
"description": "Tools that enable LLMs to interact directly with the squareup API."
|
|
},
|
|
"http_endpoint": {
|
|
"metadata": {
|
|
"object_type": "http_endpoint",
|
|
"version": "1.2.0",
|
|
"description": ""
|
|
},
|
|
"url": "https://connect.squareup.com/v2/payments/{payment_id}",
|
|
"http_method": "PUT",
|
|
"headers": {},
|
|
"parameters": [
|
|
{
|
|
"name": "payment_id",
|
|
"tool_parameter_name": "payment_identifier",
|
|
"description": "The ID of the payment to update.",
|
|
"value_schema": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the payment to update."
|
|
},
|
|
"accepted_as": "path",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
},
|
|
{
|
|
"name": "requestBody",
|
|
"tool_parameter_name": "payment_update_details",
|
|
"description": "An object containing the fields to POST for the request.\n\nSee the corresponding object definition for field details.",
|
|
"value_schema": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"payment": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique ID for the payment."
|
|
},
|
|
"created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the payment was created, in RFC 3339 format."
|
|
},
|
|
"updated_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the payment was last updated, in RFC 3339 format."
|
|
},
|
|
"amount_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"tip_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"total_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"app_fee_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"approved_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"processing_fee": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"effective_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the fee takes effect, in RFC 3339 format."
|
|
},
|
|
"type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of fee assessed or adjusted. The fee type can be `INITIAL` or `ADJUSTMENT`."
|
|
},
|
|
"amount_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"description": "The processing fees and fee adjustments assessed by Square for this payment."
|
|
},
|
|
"refunded_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether the payment is APPROVED, PENDING, COMPLETED, CANCELED, or FAILED."
|
|
},
|
|
"delay_duration": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The duration of time after the payment's creation when Square automatically applies the\n`delay_action` to the payment. This automatic `delay_action` applies only to payments that\ndo not reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration`\ntime period.\n\nThis field is specified as a time duration, in RFC 3339 format.\n\nNotes:\nThis feature is only supported for card payments.\n\nDefault:\n\n- Card-present payments: \"PT36H\" (36 hours) from the creation time.\n- Card-not-present payments: \"P7D\" (7 days) from the creation time."
|
|
},
|
|
"delay_action": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The action to be applied to the payment when the `delay_duration` has elapsed.\n\nCurrent values include `CANCEL` and `COMPLETE`."
|
|
},
|
|
"delayed_until": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The read-only timestamp of when the `delay_action` is automatically applied,\nin RFC 3339 format.\n\nNote that this field is calculated by summing the payment's `delay_duration` and `created_at`\nfields. The `created_at` field is generated by Square and might not exactly match the\ntime on your local machine."
|
|
},
|
|
"source_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The source type for this payment.\n\nCurrent values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `SQUARE_ACCOUNT`,\n`CASH` and `EXTERNAL`. For information about these payment source types,\nsee [Take Payments](https://developer.squareup.com/docs/payments-api/take-payments)."
|
|
},
|
|
"card_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or\nFAILED."
|
|
},
|
|
"card": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Unique ID for this card. Generated by Square."
|
|
},
|
|
"card_brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"OTHER_BRAND",
|
|
"VISA",
|
|
"MASTERCARD",
|
|
"AMERICAN_EXPRESS",
|
|
"DISCOVER",
|
|
"DISCOVER_DINERS",
|
|
"JCB",
|
|
"CHINA_UNIONPAY",
|
|
"SQUARE_GIFT_CARD",
|
|
"SQUARE_CAPITAL_CARD",
|
|
"INTERAC",
|
|
"EFTPOS",
|
|
"FELICA",
|
|
"EBT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's brand, such as `VISA` or `MASTERCARD`."
|
|
},
|
|
"last_4": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The last 4 digits of the card number."
|
|
},
|
|
"exp_month": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The expiration month of the associated card as an integer between 1 and 12."
|
|
},
|
|
"exp_year": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The four-digit year of the card's expiration date."
|
|
},
|
|
"cardholder_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the cardholder."
|
|
},
|
|
"billing_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"fingerprint": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Intended as a Square-assigned identifier, based\non the card number, to identify the card across multiple locations within a\nsingle application."
|
|
},
|
|
"customer_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "**Required** The ID of a [customer](entity:Customer) to be associated with the card."
|
|
},
|
|
"merchant_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the merchant associated with the card."
|
|
},
|
|
"reference_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional user-defined reference ID that associates this card with\nanother entity in an external system. For example, a customer ID from an\nexternal customer management system."
|
|
},
|
|
"enabled": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether or not a card can be used for payments."
|
|
},
|
|
"card_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CARD_TYPE",
|
|
"CREDIT",
|
|
"DEBIT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's type, such as `CREDIT` or `DEBIT`."
|
|
},
|
|
"prepaid_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_PREPAID_TYPE",
|
|
"NOT_PREPAID",
|
|
"PREPAID"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`."
|
|
},
|
|
"bin": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API\nreturns this field."
|
|
},
|
|
"version": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Current version number of the card. Increments with each card update. Requests to update an\nexisting Card object will be rejected unless the version in the request matches the current\nversion for the Card."
|
|
},
|
|
"card_co_brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN",
|
|
"AFTERPAY",
|
|
"CLEARPAY"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the brand for a co-branded card."
|
|
},
|
|
"issuer_alert": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ISSUER_ALERT_CARD_CLOSED"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the type of issuer alert for a [card on file](entity:Card)."
|
|
},
|
|
"issuer_alert_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp of when the current issuer alert was received and processed, in\nRFC 3339 format.\n\nThis field is present only if there's an active issuer alert."
|
|
},
|
|
"hsa_fsa": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates whether the card is linked to a Health Savings Account (HSA) or Flexible\nSpending Account (FSA), based on the card BIN."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents the payment details of a card to be used for payments. These\ndetails are determined by the payment token generated by Web Payments SDK."
|
|
},
|
|
"entry_method": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The method used to enter the card's details for the payment. The method can be\n`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`."
|
|
},
|
|
"cvv_status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned from the Card Verification Value (CVV) check. The code can be\n`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`."
|
|
},
|
|
"avs_status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned from the Address Verification System (AVS) check. The code can be\n`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`."
|
|
},
|
|
"auth_result_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status code returned by the card issuer that describes the payment's\nauthorization status."
|
|
},
|
|
"application_identifier": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the application ID identifies the EMV application used for the payment."
|
|
},
|
|
"application_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the human-readable name of the EMV application used for the payment."
|
|
},
|
|
"application_cryptogram": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the cryptogram generated for the payment."
|
|
},
|
|
"verification_method": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the method used to verify the cardholder's identity. The method can be\n`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`."
|
|
},
|
|
"verification_results": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "For EMV payments, the results of the cardholder verification. The result can be\n`SUCCESS`, `FAILURE`, or `UNKNOWN`."
|
|
},
|
|
"statement_description": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The statement description sent to the card networks.\n\nNote: The actual statement description varies and is likely to be truncated and appended with\nadditional information on a per issuer basis."
|
|
},
|
|
"device_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"device_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued ID of the device."
|
|
},
|
|
"device_installation_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued installation ID for the device."
|
|
},
|
|
"device_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the device set by the seller."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the device that took the payment."
|
|
},
|
|
"card_payment_timeline": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"authorized_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was authorized, in RFC 3339 format."
|
|
},
|
|
"captured_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was captured, in RFC 3339 format."
|
|
},
|
|
"voided_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when the payment was voided, in RFC 3339 format."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "The timeline for card payments."
|
|
},
|
|
"refund_requires_card_presence": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether the card must be physically present for the payment to\nbe refunded. If set to `true`, the card must be present."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Reflects the current status of a card payment. Contains only non-confidential information."
|
|
},
|
|
"cash_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"buyer_supplied_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
},
|
|
"change_back_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Stores details about a cash payment. Contains only non-confidential information. For more information, see \n[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments)."
|
|
},
|
|
"bank_account_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"bank_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the bank associated with the bank account."
|
|
},
|
|
"transfer_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of the bank transfer. The type can be `ACH` or `UNKNOWN`."
|
|
},
|
|
"account_ownership_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ownership type of the bank account performing the transfer.\nThe type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`."
|
|
},
|
|
"fingerprint": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Uniquely identifies the bank account for this seller and can be used\nto determine if payments are from the same bank account."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The two-letter ISO code representing the country the bank account is located in."
|
|
},
|
|
"statement_description": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The statement description as sent to the bank."
|
|
},
|
|
"ach_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"routing_number": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The routing number for the bank account."
|
|
},
|
|
"account_number_suffix": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The last few digits of the bank account number."
|
|
},
|
|
"account_type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of the bank account performing the transfer. The account type can be `CHECKING`,\n`SAVINGS`, or `UNKNOWN`."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about BANK_ACCOUNT type payments."
|
|
},
|
|
"external_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"type": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The type of external payment the seller received. It can be one of the following:\n- CHECK - Paid using a physical check.\n- BANK_TRANSFER - Paid using external bank transfer.\n- OTHER\\_GIFT\\_CARD - Paid using a non-Square gift card.\n- CRYPTO - Paid using a crypto currency.\n- SQUARE_CASH - Paid using Square Cash App.\n- SOCIAL - Paid using peer-to-peer payment applications.\n- EXTERNAL - A third-party application gathered this payment outside of Square.\n- EMONEY - Paid using an E-money provider.\n- CARD - A credit or debit card that Square does not support.\n- STORED_BALANCE - Use for house accounts, store credit, and so forth.\n- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals\n- OTHER - A type not listed here."
|
|
},
|
|
"source": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A description of the external payment source. For example, \n\"Food Delivery Service\"."
|
|
},
|
|
"source_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An ID to associate the payment to its originating source."
|
|
},
|
|
"source_fee_money": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"amount": {
|
|
"val_type": "integer",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The amount of money, in the smallest denomination of the currency\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\nin cents. Monetary amounts can be positive or negative. See the specific\nfield description to determine the meaning of the sign in a particular case."
|
|
},
|
|
"currency": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"UNKNOWN_CURRENCY",
|
|
"AED",
|
|
"AFN",
|
|
"ALL",
|
|
"AMD",
|
|
"ANG",
|
|
"AOA",
|
|
"ARS",
|
|
"AUD",
|
|
"AWG",
|
|
"AZN",
|
|
"BAM",
|
|
"BBD",
|
|
"BDT",
|
|
"BGN",
|
|
"BHD",
|
|
"BIF",
|
|
"BMD",
|
|
"BND",
|
|
"BOB",
|
|
"BOV",
|
|
"BRL",
|
|
"BSD",
|
|
"BTN",
|
|
"BWP",
|
|
"BYR",
|
|
"BZD",
|
|
"CAD",
|
|
"CDF",
|
|
"CHE",
|
|
"CHF",
|
|
"CHW",
|
|
"CLF",
|
|
"CLP",
|
|
"CNY",
|
|
"COP",
|
|
"COU",
|
|
"CRC",
|
|
"CUC",
|
|
"CUP",
|
|
"CVE",
|
|
"CZK",
|
|
"DJF",
|
|
"DKK",
|
|
"DOP",
|
|
"DZD",
|
|
"EGP",
|
|
"ERN",
|
|
"ETB",
|
|
"EUR",
|
|
"FJD",
|
|
"FKP",
|
|
"GBP",
|
|
"GEL",
|
|
"GHS",
|
|
"GIP",
|
|
"GMD",
|
|
"GNF",
|
|
"GTQ",
|
|
"GYD",
|
|
"HKD",
|
|
"HNL",
|
|
"HRK",
|
|
"HTG",
|
|
"HUF",
|
|
"IDR",
|
|
"ILS",
|
|
"INR",
|
|
"IQD",
|
|
"IRR",
|
|
"ISK",
|
|
"JMD",
|
|
"JOD",
|
|
"JPY",
|
|
"KES",
|
|
"KGS",
|
|
"KHR",
|
|
"KMF",
|
|
"KPW",
|
|
"KRW",
|
|
"KWD",
|
|
"KYD",
|
|
"KZT",
|
|
"LAK",
|
|
"LBP",
|
|
"LKR",
|
|
"LRD",
|
|
"LSL",
|
|
"LTL",
|
|
"LVL",
|
|
"LYD",
|
|
"MAD",
|
|
"MDL",
|
|
"MGA",
|
|
"MKD",
|
|
"MMK",
|
|
"MNT",
|
|
"MOP",
|
|
"MRO",
|
|
"MUR",
|
|
"MVR",
|
|
"MWK",
|
|
"MXN",
|
|
"MXV",
|
|
"MYR",
|
|
"MZN",
|
|
"NAD",
|
|
"NGN",
|
|
"NIO",
|
|
"NOK",
|
|
"NPR",
|
|
"NZD",
|
|
"OMR",
|
|
"PAB",
|
|
"PEN",
|
|
"PGK",
|
|
"PHP",
|
|
"PKR",
|
|
"PLN",
|
|
"PYG",
|
|
"QAR",
|
|
"RON",
|
|
"RSD",
|
|
"RUB",
|
|
"RWF",
|
|
"SAR",
|
|
"SBD",
|
|
"SCR",
|
|
"SDG",
|
|
"SEK",
|
|
"SGD",
|
|
"SHP",
|
|
"SLL",
|
|
"SLE",
|
|
"SOS",
|
|
"SRD",
|
|
"SSP",
|
|
"STD",
|
|
"SVC",
|
|
"SYP",
|
|
"SZL",
|
|
"THB",
|
|
"TJS",
|
|
"TMT",
|
|
"TND",
|
|
"TOP",
|
|
"TRY",
|
|
"TTD",
|
|
"TWD",
|
|
"TZS",
|
|
"UAH",
|
|
"UGX",
|
|
"USD",
|
|
"USN",
|
|
"USS",
|
|
"UYI",
|
|
"UYU",
|
|
"UZS",
|
|
"VEF",
|
|
"VND",
|
|
"VUV",
|
|
"WST",
|
|
"XAF",
|
|
"XAG",
|
|
"XAU",
|
|
"XBA",
|
|
"XBB",
|
|
"XBC",
|
|
"XBD",
|
|
"XCD",
|
|
"XDR",
|
|
"XOF",
|
|
"XPD",
|
|
"XPF",
|
|
"XPT",
|
|
"XTS",
|
|
"XXX",
|
|
"YER",
|
|
"ZAR",
|
|
"ZMK",
|
|
"ZMW",
|
|
"BTC",
|
|
"XUS"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the associated currency for an amount of money. Values correspond\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents an amount of money. `Money` fields can be signed or unsigned.\nFields that do not explicitly define whether they are signed or unsigned are\nconsidered unsigned and can only hold positive amounts. For signed fields, the\nsign of the value indicates the purpose of the money transfer. See\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\nfor more information."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Stores details about an external payment. Contains only non-confidential information.\nFor more information, see \n[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments)."
|
|
},
|
|
"wallet_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"status": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or\n`FAILED`."
|
|
},
|
|
"brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,\n`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`."
|
|
},
|
|
"cash_app_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"buyer_full_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the Cash App account holder."
|
|
},
|
|
"buyer_country_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.\n\nFor possible values, see [Country](entity:Country)."
|
|
},
|
|
"buyer_cashtag": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "$Cashtag of the Cash App account holder."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about `WALLET` type payments with the `brand` of `CASH_APP`."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about `WALLET` type payments. Contains only non-confidential information."
|
|
},
|
|
"buy_now_pay_later_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"brand": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The brand used for the Buy Now Pay Later payment.\nThe brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`."
|
|
},
|
|
"afterpay_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Email address on the buyer's Afterpay account."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Afterpay payments."
|
|
},
|
|
"clearpay_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Email address on the buyer's Clearpay account."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Clearpay payments."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about a Buy Now Pay Later payment type."
|
|
},
|
|
"square_account_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"payment_source_token": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Unique identifier for the payment source used for this payment."
|
|
},
|
|
"errors": {
|
|
"val_type": "array",
|
|
"inner_val_type": "json",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": {
|
|
"category": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"API_ERROR",
|
|
"AUTHENTICATION_ERROR",
|
|
"INVALID_REQUEST_ERROR",
|
|
"RATE_LIMIT_ERROR",
|
|
"PAYMENT_METHOD_ERROR",
|
|
"REFUND_ERROR",
|
|
"MERCHANT_SUBSCRIPTION_ERROR",
|
|
"EXTERNAL_VENDOR_ERROR"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates which high-level category of error has occurred during a\nrequest to the Connect API."
|
|
},
|
|
"code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"INTERNAL_SERVER_ERROR",
|
|
"UNAUTHORIZED",
|
|
"ACCESS_TOKEN_EXPIRED",
|
|
"ACCESS_TOKEN_REVOKED",
|
|
"CLIENT_DISABLED",
|
|
"FORBIDDEN",
|
|
"INSUFFICIENT_SCOPES",
|
|
"APPLICATION_DISABLED",
|
|
"V1_APPLICATION",
|
|
"V1_ACCESS_TOKEN",
|
|
"CARD_PROCESSING_NOT_ENABLED",
|
|
"MERCHANT_SUBSCRIPTION_NOT_FOUND",
|
|
"BAD_REQUEST",
|
|
"MISSING_REQUIRED_PARAMETER",
|
|
"INCORRECT_TYPE",
|
|
"INVALID_TIME",
|
|
"INVALID_TIME_RANGE",
|
|
"INVALID_VALUE",
|
|
"INVALID_CURSOR",
|
|
"UNKNOWN_QUERY_PARAMETER",
|
|
"CONFLICTING_PARAMETERS",
|
|
"EXPECTED_JSON_BODY",
|
|
"INVALID_SORT_ORDER",
|
|
"VALUE_REGEX_MISMATCH",
|
|
"VALUE_TOO_SHORT",
|
|
"VALUE_TOO_LONG",
|
|
"VALUE_TOO_LOW",
|
|
"VALUE_TOO_HIGH",
|
|
"VALUE_EMPTY",
|
|
"ARRAY_LENGTH_TOO_LONG",
|
|
"ARRAY_LENGTH_TOO_SHORT",
|
|
"ARRAY_EMPTY",
|
|
"EXPECTED_BOOLEAN",
|
|
"EXPECTED_INTEGER",
|
|
"EXPECTED_FLOAT",
|
|
"EXPECTED_STRING",
|
|
"EXPECTED_OBJECT",
|
|
"EXPECTED_ARRAY",
|
|
"EXPECTED_MAP",
|
|
"EXPECTED_BASE64_ENCODED_BYTE_ARRAY",
|
|
"INVALID_ARRAY_VALUE",
|
|
"INVALID_ENUM_VALUE",
|
|
"INVALID_CONTENT_TYPE",
|
|
"INVALID_FORM_VALUE",
|
|
"CUSTOMER_NOT_FOUND",
|
|
"ONE_INSTRUMENT_EXPECTED",
|
|
"NO_FIELDS_SET",
|
|
"TOO_MANY_MAP_ENTRIES",
|
|
"MAP_KEY_LENGTH_TOO_SHORT",
|
|
"MAP_KEY_LENGTH_TOO_LONG",
|
|
"CUSTOMER_MISSING_NAME",
|
|
"CUSTOMER_MISSING_EMAIL",
|
|
"INVALID_PAUSE_LENGTH",
|
|
"INVALID_DATE",
|
|
"UNSUPPORTED_COUNTRY",
|
|
"UNSUPPORTED_CURRENCY",
|
|
"APPLE_TTP_PIN_TOKEN",
|
|
"CARD_EXPIRED",
|
|
"INVALID_EXPIRATION",
|
|
"INVALID_EXPIRATION_YEAR",
|
|
"INVALID_EXPIRATION_DATE",
|
|
"UNSUPPORTED_CARD_BRAND",
|
|
"UNSUPPORTED_ENTRY_METHOD",
|
|
"INVALID_ENCRYPTED_CARD",
|
|
"INVALID_CARD",
|
|
"PAYMENT_AMOUNT_MISMATCH",
|
|
"GENERIC_DECLINE",
|
|
"CVV_FAILURE",
|
|
"ADDRESS_VERIFICATION_FAILURE",
|
|
"INVALID_ACCOUNT",
|
|
"CURRENCY_MISMATCH",
|
|
"INSUFFICIENT_FUNDS",
|
|
"INSUFFICIENT_PERMISSIONS",
|
|
"CARDHOLDER_INSUFFICIENT_PERMISSIONS",
|
|
"INVALID_LOCATION",
|
|
"TRANSACTION_LIMIT",
|
|
"VOICE_FAILURE",
|
|
"PAN_FAILURE",
|
|
"EXPIRATION_FAILURE",
|
|
"CARD_NOT_SUPPORTED",
|
|
"READER_DECLINED",
|
|
"INVALID_PIN",
|
|
"MISSING_PIN",
|
|
"MISSING_ACCOUNT_TYPE",
|
|
"INVALID_POSTAL_CODE",
|
|
"INVALID_FEES",
|
|
"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED",
|
|
"PAYMENT_LIMIT_EXCEEDED",
|
|
"GIFT_CARD_AVAILABLE_AMOUNT",
|
|
"ACCOUNT_UNUSABLE",
|
|
"BUYER_REFUSED_PAYMENT",
|
|
"DELAYED_TRANSACTION_EXPIRED",
|
|
"DELAYED_TRANSACTION_CANCELED",
|
|
"DELAYED_TRANSACTION_CAPTURED",
|
|
"DELAYED_TRANSACTION_FAILED",
|
|
"CARD_TOKEN_EXPIRED",
|
|
"CARD_TOKEN_USED",
|
|
"AMOUNT_TOO_HIGH",
|
|
"UNSUPPORTED_INSTRUMENT_TYPE",
|
|
"REFUND_AMOUNT_INVALID",
|
|
"REFUND_ALREADY_PENDING",
|
|
"PAYMENT_NOT_REFUNDABLE",
|
|
"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE",
|
|
"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION",
|
|
"REFUND_DECLINED",
|
|
"INSUFFICIENT_PERMISSIONS_FOR_REFUND",
|
|
"INVALID_CARD_DATA",
|
|
"SOURCE_USED",
|
|
"SOURCE_EXPIRED",
|
|
"UNSUPPORTED_LOYALTY_REWARD_TIER",
|
|
"LOCATION_MISMATCH",
|
|
"ORDER_UNPAID_NOT_RETURNABLE",
|
|
"IDEMPOTENCY_KEY_REUSED",
|
|
"UNEXPECTED_VALUE",
|
|
"SANDBOX_NOT_SUPPORTED",
|
|
"INVALID_EMAIL_ADDRESS",
|
|
"INVALID_PHONE_NUMBER",
|
|
"CHECKOUT_EXPIRED",
|
|
"BAD_CERTIFICATE",
|
|
"INVALID_SQUARE_VERSION_FORMAT",
|
|
"API_VERSION_INCOMPATIBLE",
|
|
"CARD_PRESENCE_REQUIRED",
|
|
"UNSUPPORTED_SOURCE_TYPE",
|
|
"CARD_MISMATCH",
|
|
"PLAID_ERROR",
|
|
"PLAID_ERROR_ITEM_LOGIN_REQUIRED",
|
|
"PLAID_ERROR_RATE_LIMIT",
|
|
"CARD_DECLINED",
|
|
"VERIFY_CVV_FAILURE",
|
|
"VERIFY_AVS_FAILURE",
|
|
"CARD_DECLINED_CALL_ISSUER",
|
|
"CARD_DECLINED_VERIFICATION_REQUIRED",
|
|
"BAD_EXPIRATION",
|
|
"CHIP_INSERTION_REQUIRED",
|
|
"ALLOWABLE_PIN_TRIES_EXCEEDED",
|
|
"RESERVATION_DECLINED",
|
|
"UNKNOWN_BODY_PARAMETER",
|
|
"NOT_FOUND",
|
|
"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND",
|
|
"METHOD_NOT_ALLOWED",
|
|
"NOT_ACCEPTABLE",
|
|
"REQUEST_TIMEOUT",
|
|
"CONFLICT",
|
|
"GONE",
|
|
"REQUEST_ENTITY_TOO_LARGE",
|
|
"UNSUPPORTED_MEDIA_TYPE",
|
|
"UNPROCESSABLE_ENTITY",
|
|
"RATE_LIMITED",
|
|
"NOT_IMPLEMENTED",
|
|
"BAD_GATEWAY",
|
|
"SERVICE_UNAVAILABLE",
|
|
"TEMPORARY_ERROR",
|
|
"GATEWAY_TIMEOUT"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the specific error that occurred during a request to a\nSquare API."
|
|
},
|
|
"detail": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A human-readable description of the error for debugging purposes."
|
|
},
|
|
"field": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the field provided in the original request (if any) that\nthe error pertains to."
|
|
}
|
|
},
|
|
"description": "Information about errors encountered during the request."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Additional details about Square Account payments."
|
|
},
|
|
"location_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the location associated with the payment."
|
|
},
|
|
"order_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the order associated with the payment."
|
|
},
|
|
"reference_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID that associates the payment with an entity in\nanother system."
|
|
},
|
|
"customer_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The ID of the customer associated with the payment. If the ID is \nnot provided in the `CreatePayment` request that was used to create the `Payment`, \nSquare may use information in the request \n(such as the billing and shipping address, email address, and payment source) \nto identify a matching customer profile in the Customer Directory. \nIf found, the profile ID is used. If a profile is not found, the \nAPI attempts to create an \n[instant profile](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles). \nIf the API cannot create an \ninstant profile (either because the seller has disabled it or the \nseller's region prevents creating it), this field remains unset. Note that \nthis process is asynchronous and it may take some time before a \ncustomer ID is added to the payment."
|
|
},
|
|
"employee_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "__Deprecated__: Use `Payment.team_member_id` instead.\n\nAn optional ID of the employee associated with taking the payment."
|
|
},
|
|
"team_member_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment."
|
|
},
|
|
"refund_ids": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A list of `refund_id`s identifying refunds for the payment."
|
|
},
|
|
"risk_evaluation": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The timestamp when payment risk was evaluated, in RFC 3339 format."
|
|
},
|
|
"risk_level": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"PENDING",
|
|
"NORMAL",
|
|
"MODERATE",
|
|
"HIGH"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": null
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents fraud risk information for the associated payment.\n\nWhen you take a payment through Square's Payments API (using the `CreatePayment`\nendpoint), Square evaluates it and assigns a risk level to the payment. Sellers\ncan use this information to determine the course of action (for example,\nprovide the goods/services or refund the payment)."
|
|
},
|
|
"terminal_checkout_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional ID for a Terminal checkout that is associated with the payment."
|
|
},
|
|
"buyer_email_address": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The buyer's email address."
|
|
},
|
|
"billing_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"shipping_address": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"address_line_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The first line of the address.\n\nFields that start with `address_line` provide the address's most specific\ndetails, like street number, street name, and building name. They do *not*\nprovide less specific details like city, state/province, or country (these\ndetails are provided in other fields)."
|
|
},
|
|
"address_line_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The second line of the address, if any."
|
|
},
|
|
"address_line_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The third line of the address, if any."
|
|
},
|
|
"locality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"sublocality": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `locality`, if any."
|
|
},
|
|
"sublocality_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality`, if any."
|
|
},
|
|
"sublocality_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil region within the address's `sublocality_2`, if any."
|
|
},
|
|
"administrative_district_level_1": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's country. In the US, this\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"administrative_district_level_2": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_1`.\nIn the US, this is the county."
|
|
},
|
|
"administrative_district_level_3": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A civil entity within the address's `administrative_district_level_2`,\nif any."
|
|
},
|
|
"postal_code": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"country": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"ZZ",
|
|
"AD",
|
|
"AE",
|
|
"AF",
|
|
"AG",
|
|
"AI",
|
|
"AL",
|
|
"AM",
|
|
"AO",
|
|
"AQ",
|
|
"AR",
|
|
"AS",
|
|
"AT",
|
|
"AU",
|
|
"AW",
|
|
"AX",
|
|
"AZ",
|
|
"BA",
|
|
"BB",
|
|
"BD",
|
|
"BE",
|
|
"BF",
|
|
"BG",
|
|
"BH",
|
|
"BI",
|
|
"BJ",
|
|
"BL",
|
|
"BM",
|
|
"BN",
|
|
"BO",
|
|
"BQ",
|
|
"BR",
|
|
"BS",
|
|
"BT",
|
|
"BV",
|
|
"BW",
|
|
"BY",
|
|
"BZ",
|
|
"CA",
|
|
"CC",
|
|
"CD",
|
|
"CF",
|
|
"CG",
|
|
"CH",
|
|
"CI",
|
|
"CK",
|
|
"CL",
|
|
"CM",
|
|
"CN",
|
|
"CO",
|
|
"CR",
|
|
"CU",
|
|
"CV",
|
|
"CW",
|
|
"CX",
|
|
"CY",
|
|
"CZ",
|
|
"DE",
|
|
"DJ",
|
|
"DK",
|
|
"DM",
|
|
"DO",
|
|
"DZ",
|
|
"EC",
|
|
"EE",
|
|
"EG",
|
|
"EH",
|
|
"ER",
|
|
"ES",
|
|
"ET",
|
|
"FI",
|
|
"FJ",
|
|
"FK",
|
|
"FM",
|
|
"FO",
|
|
"FR",
|
|
"GA",
|
|
"GB",
|
|
"GD",
|
|
"GE",
|
|
"GF",
|
|
"GG",
|
|
"GH",
|
|
"GI",
|
|
"GL",
|
|
"GM",
|
|
"GN",
|
|
"GP",
|
|
"GQ",
|
|
"GR",
|
|
"GS",
|
|
"GT",
|
|
"GU",
|
|
"GW",
|
|
"GY",
|
|
"HK",
|
|
"HM",
|
|
"HN",
|
|
"HR",
|
|
"HT",
|
|
"HU",
|
|
"ID",
|
|
"IE",
|
|
"IL",
|
|
"IM",
|
|
"IN",
|
|
"IO",
|
|
"IQ",
|
|
"IR",
|
|
"IS",
|
|
"IT",
|
|
"JE",
|
|
"JM",
|
|
"JO",
|
|
"JP",
|
|
"KE",
|
|
"KG",
|
|
"KH",
|
|
"KI",
|
|
"KM",
|
|
"KN",
|
|
"KP",
|
|
"KR",
|
|
"KW",
|
|
"KY",
|
|
"KZ",
|
|
"LA",
|
|
"LB",
|
|
"LC",
|
|
"LI",
|
|
"LK",
|
|
"LR",
|
|
"LS",
|
|
"LT",
|
|
"LU",
|
|
"LV",
|
|
"LY",
|
|
"MA",
|
|
"MC",
|
|
"MD",
|
|
"ME",
|
|
"MF",
|
|
"MG",
|
|
"MH",
|
|
"MK",
|
|
"ML",
|
|
"MM",
|
|
"MN",
|
|
"MO",
|
|
"MP",
|
|
"MQ",
|
|
"MR",
|
|
"MS",
|
|
"MT",
|
|
"MU",
|
|
"MV",
|
|
"MW",
|
|
"MX",
|
|
"MY",
|
|
"MZ",
|
|
"NA",
|
|
"NC",
|
|
"NE",
|
|
"NF",
|
|
"NG",
|
|
"NI",
|
|
"NL",
|
|
"NO",
|
|
"NP",
|
|
"NR",
|
|
"NU",
|
|
"NZ",
|
|
"OM",
|
|
"PA",
|
|
"PE",
|
|
"PF",
|
|
"PG",
|
|
"PH",
|
|
"PK",
|
|
"PL",
|
|
"PM",
|
|
"PN",
|
|
"PR",
|
|
"PS",
|
|
"PT",
|
|
"PW",
|
|
"PY",
|
|
"QA",
|
|
"RE",
|
|
"RO",
|
|
"RS",
|
|
"RU",
|
|
"RW",
|
|
"SA",
|
|
"SB",
|
|
"SC",
|
|
"SD",
|
|
"SE",
|
|
"SG",
|
|
"SH",
|
|
"SI",
|
|
"SJ",
|
|
"SK",
|
|
"SL",
|
|
"SM",
|
|
"SN",
|
|
"SO",
|
|
"SR",
|
|
"SS",
|
|
"ST",
|
|
"SV",
|
|
"SX",
|
|
"SY",
|
|
"SZ",
|
|
"TC",
|
|
"TD",
|
|
"TF",
|
|
"TG",
|
|
"TH",
|
|
"TJ",
|
|
"TK",
|
|
"TL",
|
|
"TM",
|
|
"TN",
|
|
"TO",
|
|
"TR",
|
|
"TT",
|
|
"TV",
|
|
"TW",
|
|
"TZ",
|
|
"UA",
|
|
"UG",
|
|
"UM",
|
|
"US",
|
|
"UY",
|
|
"UZ",
|
|
"VA",
|
|
"VC",
|
|
"VE",
|
|
"VG",
|
|
"VI",
|
|
"VN",
|
|
"VU",
|
|
"WF",
|
|
"WS",
|
|
"YE",
|
|
"YT",
|
|
"ZA",
|
|
"ZM",
|
|
"ZW"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Indicates the country associated with another entity, such as a business.\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm)."
|
|
},
|
|
"first_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional first name when it's representing recipient."
|
|
},
|
|
"last_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Optional last name when it's representing recipient."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a postal address in a country. \nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses)."
|
|
},
|
|
"note": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "An optional note to include when creating a payment."
|
|
},
|
|
"statement_description_identifier": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Additional payment information that gets added to the customer's card statement\nas part of the statement description.\n\nNote that the `statement_description_identifier` might get truncated on the statement description\nto fit the required information including the Square identifier (SQ *) and the name of the\nseller taking the payment."
|
|
},
|
|
"capabilities": {
|
|
"val_type": "array",
|
|
"inner_val_type": "string",
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Actions that can be performed on this payment:\n- `EDIT_AMOUNT_UP` - The payment amount can be edited up.\n- `EDIT_AMOUNT_DOWN` - The payment amount can be edited down.\n- `EDIT_TIP_AMOUNT_UP` - The tip amount can be edited up.\n- `EDIT_TIP_AMOUNT_DOWN` - The tip amount can be edited down.\n- `EDIT_DELAY_ACTION` - The delay_action can be edited."
|
|
},
|
|
"receipt_number": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The payment's receipt number.\nThe field is missing if a payment is canceled."
|
|
},
|
|
"receipt_url": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The URL for the payment's receipt.\nThe field is only populated for COMPLETED payments."
|
|
},
|
|
"device_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"device_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued ID of the device."
|
|
},
|
|
"device_installation_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square-issued installation ID for the device."
|
|
},
|
|
"device_name": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The name of the device set by the seller."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the device that took the payment."
|
|
},
|
|
"application_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"square_product": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": [
|
|
"APPOINTMENTS",
|
|
"ECOMMERCE_API",
|
|
"INVOICES",
|
|
"ONLINE_STORE",
|
|
"OTHER",
|
|
"RESTAURANTS",
|
|
"RETAIL",
|
|
"SQUARE_POS",
|
|
"TERMINAL_API",
|
|
"VIRTUAL_TERMINAL"
|
|
],
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A list of products to return to external callers."
|
|
},
|
|
"application_id": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The Square ID assigned to the application used to take the payment. \nApplication developers can use this information to identify payments that \ntheir application processed. \nFor example, if a developer uses a custom application to process payments, \nthis field contains the application ID from the Developer Dashboard. \nIf a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace) \napplication to process payments, the field contains the corresponding application ID."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details about the application that took the payment."
|
|
},
|
|
"is_offline_payment": {
|
|
"val_type": "boolean",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Whether or not this payment was taken offline."
|
|
},
|
|
"offline_payment_details": {
|
|
"val_type": "json",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": {
|
|
"client_created_at": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "The client-side timestamp of when the offline payment was created, in RFC 3339 format."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Details specific to offline payments."
|
|
},
|
|
"version_token": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "Used for optimistic concurrency. This opaque token identifies a specific version of the\n`Payment` object."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "Represents a payment processed by the Square API."
|
|
},
|
|
"idempotency_key": {
|
|
"val_type": "string",
|
|
"inner_val_type": null,
|
|
"enum": null,
|
|
"properties": null,
|
|
"inner_properties": null,
|
|
"description": "A unique string that identifies this `UpdatePayment` request. Keys can be any valid string\nbut must be unique for every `UpdatePayment` request.\n\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency)."
|
|
}
|
|
},
|
|
"inner_properties": null,
|
|
"description": "An object containing the fields to POST for the request.\n\nSee the corresponding object definition for field details."
|
|
},
|
|
"accepted_as": "body",
|
|
"required": true,
|
|
"deprecated": false,
|
|
"default": null,
|
|
"documentation_urls": []
|
|
}
|
|
],
|
|
"documentation_urls": [],
|
|
"secrets": [
|
|
{
|
|
"arcade_key": "auth_token",
|
|
"parameter_name": "Authorization",
|
|
"accepted_as": "header",
|
|
"formatted_value": "Bearer {authorization}",
|
|
"description": "The OAuth token to use for authentication.",
|
|
"is_auth_token": true
|
|
}
|
|
],
|
|
"request_body_spec": "{\n \"required\": true,\n \"description\": \"An object containing the fields to POST for the request.\\n\\nSee the corresponding object definition for field details.\",\n \"content\": {\n \"application/json\": {\n \"schema\": {\n \"type\": \"object\",\n \"description\": \"Describes a request to update a payment using\\n[UpdatePayment](api-endpoint:Payments-UpdatePayment).\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"idempotency_key\"\n ],\n \"properties\": {\n \"payment\": {\n \"type\": \"object\",\n \"description\": \"Represents a payment processed by the Square API.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"description\": \"A unique ID for the payment.\",\n \"maxLength\": 192,\n \"readOnly\": true\n },\n \"created_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp of when the payment was created, in RFC 3339 format.\",\n \"maxLength\": 32,\n \"readOnly\": true\n },\n \"updated_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp of when the payment was last updated, in RFC 3339 format.\",\n \"maxLength\": 32,\n \"readOnly\": true\n },\n \"amount_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"tip_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"total_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"app_fee_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"approved_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"processing_fee\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"description\": \"Represents the Square processing fee.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"effective_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp of when the fee takes effect, in RFC 3339 format.\",\n \"nullable\": true\n },\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of fee assessed or adjusted. The fee type can be `INITIAL` or `ADJUSTMENT`.\",\n \"nullable\": true\n },\n \"amount_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n }\n }\n },\n \"description\": \"The processing fees and fee adjustments assessed by Square for this payment.\",\n \"readOnly\": true\n },\n \"refunded_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"status\": {\n \"type\": \"string\",\n \"description\": \"Indicates whether the payment is APPROVED, PENDING, COMPLETED, CANCELED, or FAILED.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"delay_duration\": {\n \"type\": \"string\",\n \"description\": \"The duration of time after the payment's creation when Square automatically applies the\\n`delay_action` to the payment. This automatic `delay_action` applies only to payments that\\ndo not reach a terminal state (COMPLETED, CANCELED, or FAILED) before the `delay_duration`\\ntime period.\\n\\nThis field is specified as a time duration, in RFC 3339 format.\\n\\nNotes:\\nThis feature is only supported for card payments.\\n\\nDefault:\\n\\n- Card-present payments: \\\"PT36H\\\" (36 hours) from the creation time.\\n- Card-not-present payments: \\\"P7D\\\" (7 days) from the creation time.\",\n \"readOnly\": true\n },\n \"delay_action\": {\n \"type\": \"string\",\n \"description\": \"The action to be applied to the payment when the `delay_duration` has elapsed.\\n\\nCurrent values include `CANCEL` and `COMPLETE`.\",\n \"nullable\": true\n },\n \"delayed_until\": {\n \"type\": \"string\",\n \"description\": \"The read-only timestamp of when the `delay_action` is automatically applied,\\nin RFC 3339 format.\\n\\nNote that this field is calculated by summing the payment's `delay_duration` and `created_at`\\nfields. The `created_at` field is generated by Square and might not exactly match the\\ntime on your local machine.\",\n \"readOnly\": true\n },\n \"source_type\": {\n \"type\": \"string\",\n \"description\": \"The source type for this payment.\\n\\nCurrent values include `CARD`, `BANK_ACCOUNT`, `WALLET`, `BUY_NOW_PAY_LATER`, `SQUARE_ACCOUNT`,\\n`CASH` and `EXTERNAL`. For information about these payment source types,\\nsee [Take Payments](https://developer.squareup.com/docs/payments-api/take-payments).\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"card_details\": {\n \"type\": \"object\",\n \"description\": \"Reflects the current status of a card payment. Contains only non-confidential information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"status\": {\n \"type\": \"string\",\n \"description\": \"The card payment's current state. The state can be AUTHORIZED, CAPTURED, VOIDED, or\\nFAILED.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"card\": {\n \"type\": \"object\",\n \"description\": \"Represents the payment details of a card to be used for payments. These\\ndetails are determined by the payment token generated by Web Payments SDK.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"id\": {\n \"type\": \"string\",\n \"description\": \"Unique ID for this card. Generated by Square.\",\n \"maxLength\": 64,\n \"readOnly\": true\n },\n \"card_brand\": {\n \"type\": \"string\",\n \"enum\": [\n \"OTHER_BRAND\",\n \"VISA\",\n \"MASTERCARD\",\n \"AMERICAN_EXPRESS\",\n \"DISCOVER\",\n \"DISCOVER_DINERS\",\n \"JCB\",\n \"CHINA_UNIONPAY\",\n \"SQUARE_GIFT_CARD\",\n \"SQUARE_CAPITAL_CARD\",\n \"INTERAC\",\n \"EFTPOS\",\n \"FELICA\",\n \"EBT\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"OTHER_BRAND\",\n \"description\": \"\"\n },\n {\n \"name\": \"VISA\",\n \"description\": \"\"\n },\n {\n \"name\": \"MASTERCARD\",\n \"description\": \"\"\n },\n {\n \"name\": \"AMERICAN_EXPRESS\",\n \"description\": \"\"\n },\n {\n \"name\": \"DISCOVER\",\n \"description\": \"\"\n },\n {\n \"name\": \"DISCOVER_DINERS\",\n \"description\": \"\"\n },\n {\n \"name\": \"JCB\",\n \"description\": \"\"\n },\n {\n \"name\": \"CHINA_UNIONPAY\",\n \"description\": \"\"\n },\n {\n \"name\": \"SQUARE_GIFT_CARD\",\n \"description\": \"\"\n },\n {\n \"name\": \"SQUARE_CAPITAL_CARD\",\n \"description\": \"\"\n },\n {\n \"name\": \"INTERAC\",\n \"description\": \"\"\n },\n {\n \"name\": \"EFTPOS\",\n \"description\": \"\"\n },\n {\n \"name\": \"FELICA\",\n \"description\": \"\"\n },\n {\n \"name\": \"EBT\",\n \"description\": \"\"\n }\n ],\n \"description\": \"Indicates a card's brand, such as `VISA` or `MASTERCARD`.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"last_4\": {\n \"type\": \"string\",\n \"description\": \"The last 4 digits of the card number.\",\n \"maxLength\": 4,\n \"readOnly\": true\n },\n \"exp_month\": {\n \"type\": \"integer\",\n \"description\": \"The expiration month of the associated card as an integer between 1 and 12.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"exp_year\": {\n \"type\": \"integer\",\n \"description\": \"The four-digit year of the card's expiration date.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"cardholder_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the cardholder.\",\n \"maxLength\": 96,\n \"nullable\": true\n },\n \"billing_address\": {\n \"type\": \"object\",\n \"description\": \"Represents a postal address in a country. \\nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"address_line_1\": {\n \"type\": \"string\",\n \"description\": \"The first line of the address.\\n\\nFields that start with `address_line` provide the address's most specific\\ndetails, like street number, street name, and building name. They do *not*\\nprovide less specific details like city, state/province, or country (these\\ndetails are provided in other fields).\",\n \"nullable\": true\n },\n \"address_line_2\": {\n \"type\": \"string\",\n \"description\": \"The second line of the address, if any.\",\n \"nullable\": true\n },\n \"address_line_3\": {\n \"type\": \"string\",\n \"description\": \"The third line of the address, if any.\",\n \"nullable\": true\n },\n \"locality\": {\n \"type\": \"string\",\n \"description\": \"The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"sublocality\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `locality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_2\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_3\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality_2`, if any.\",\n \"nullable\": true\n },\n \"administrative_district_level_1\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's country. In the US, this\\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"administrative_district_level_2\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_1`.\\nIn the US, this is the county.\",\n \"nullable\": true\n },\n \"administrative_district_level_3\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_2`,\\nif any.\",\n \"nullable\": true\n },\n \"postal_code\": {\n \"type\": \"string\",\n \"description\": \"The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"country\": {\n \"type\": \"string\",\n \"enum\": [\n \"ZZ\",\n \"AD\",\n \"AE\",\n \"AF\",\n \"AG\",\n \"AI\",\n \"AL\",\n \"AM\",\n \"AO\",\n \"AQ\",\n \"AR\",\n \"AS\",\n \"AT\",\n \"AU\",\n \"AW\",\n \"AX\",\n \"AZ\",\n \"BA\",\n \"BB\",\n \"BD\",\n \"BE\",\n \"BF\",\n \"BG\",\n \"BH\",\n \"BI\",\n \"BJ\",\n \"BL\",\n \"BM\",\n \"BN\",\n \"BO\",\n \"BQ\",\n \"BR\",\n \"BS\",\n \"BT\",\n \"BV\",\n \"BW\",\n \"BY\",\n \"BZ\",\n \"CA\",\n \"CC\",\n \"CD\",\n \"CF\",\n \"CG\",\n \"CH\",\n \"CI\",\n \"CK\",\n \"CL\",\n \"CM\",\n \"CN\",\n \"CO\",\n \"CR\",\n \"CU\",\n \"CV\",\n \"CW\",\n \"CX\",\n \"CY\",\n \"CZ\",\n \"DE\",\n \"DJ\",\n \"DK\",\n \"DM\",\n \"DO\",\n \"DZ\",\n \"EC\",\n \"EE\",\n \"EG\",\n \"EH\",\n \"ER\",\n \"ES\",\n \"ET\",\n \"FI\",\n \"FJ\",\n \"FK\",\n \"FM\",\n \"FO\",\n \"FR\",\n \"GA\",\n \"GB\",\n \"GD\",\n \"GE\",\n \"GF\",\n \"GG\",\n \"GH\",\n \"GI\",\n \"GL\",\n \"GM\",\n \"GN\",\n \"GP\",\n \"GQ\",\n \"GR\",\n \"GS\",\n \"GT\",\n \"GU\",\n \"GW\",\n \"GY\",\n \"HK\",\n \"HM\",\n \"HN\",\n \"HR\",\n \"HT\",\n \"HU\",\n \"ID\",\n \"IE\",\n \"IL\",\n \"IM\",\n \"IN\",\n \"IO\",\n \"IQ\",\n \"IR\",\n \"IS\",\n \"IT\",\n \"JE\",\n \"JM\",\n \"JO\",\n \"JP\",\n \"KE\",\n \"KG\",\n \"KH\",\n \"KI\",\n \"KM\",\n \"KN\",\n \"KP\",\n \"KR\",\n \"KW\",\n \"KY\",\n \"KZ\",\n \"LA\",\n \"LB\",\n \"LC\",\n \"LI\",\n \"LK\",\n \"LR\",\n \"LS\",\n \"LT\",\n \"LU\",\n \"LV\",\n \"LY\",\n \"MA\",\n \"MC\",\n \"MD\",\n \"ME\",\n \"MF\",\n \"MG\",\n \"MH\",\n \"MK\",\n \"ML\",\n \"MM\",\n \"MN\",\n \"MO\",\n \"MP\",\n \"MQ\",\n \"MR\",\n \"MS\",\n \"MT\",\n \"MU\",\n \"MV\",\n \"MW\",\n \"MX\",\n \"MY\",\n \"MZ\",\n \"NA\",\n \"NC\",\n \"NE\",\n \"NF\",\n \"NG\",\n \"NI\",\n \"NL\",\n \"NO\",\n \"NP\",\n \"NR\",\n \"NU\",\n \"NZ\",\n \"OM\",\n \"PA\",\n \"PE\",\n \"PF\",\n \"PG\",\n \"PH\",\n \"PK\",\n \"PL\",\n \"PM\",\n \"PN\",\n \"PR\",\n \"PS\",\n \"PT\",\n \"PW\",\n \"PY\",\n \"QA\",\n \"RE\",\n \"RO\",\n \"RS\",\n \"RU\",\n \"RW\",\n \"SA\",\n \"SB\",\n \"SC\",\n \"SD\",\n \"SE\",\n \"SG\",\n \"SH\",\n \"SI\",\n \"SJ\",\n \"SK\",\n \"SL\",\n \"SM\",\n \"SN\",\n \"SO\",\n \"SR\",\n \"SS\",\n \"ST\",\n \"SV\",\n \"SX\",\n \"SY\",\n \"SZ\",\n \"TC\",\n \"TD\",\n \"TF\",\n \"TG\",\n \"TH\",\n \"TJ\",\n \"TK\",\n \"TL\",\n \"TM\",\n \"TN\",\n \"TO\",\n \"TR\",\n \"TT\",\n \"TV\",\n \"TW\",\n \"TZ\",\n \"UA\",\n \"UG\",\n \"UM\",\n \"US\",\n \"UY\",\n \"UZ\",\n \"VA\",\n \"VC\",\n \"VE\",\n \"VG\",\n \"VI\",\n \"VN\",\n \"VU\",\n \"WF\",\n \"WS\",\n \"YE\",\n \"YT\",\n \"ZA\",\n \"ZM\",\n \"ZW\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"ZZ\",\n \"description\": \"Unknown\"\n },\n {\n \"name\": \"AD\",\n \"description\": \"Andorra\"\n },\n {\n \"name\": \"AE\",\n \"description\": \"United Arab Emirates\"\n },\n {\n \"name\": \"AF\",\n \"description\": \"Afghanistan\"\n },\n {\n \"name\": \"AG\",\n \"description\": \"Antigua and Barbuda\"\n },\n {\n \"name\": \"AI\",\n \"description\": \"Anguilla\"\n },\n {\n \"name\": \"AL\",\n \"description\": \"Albania\"\n },\n {\n \"name\": \"AM\",\n \"description\": \"Armenia\"\n },\n {\n \"name\": \"AO\",\n \"description\": \"Angola\"\n },\n {\n \"name\": \"AQ\",\n \"description\": \"Antartica\"\n },\n {\n \"name\": \"AR\",\n \"description\": \"Argentina\"\n },\n {\n \"name\": \"AS\",\n \"description\": \"American Samoa\"\n },\n {\n \"name\": \"AT\",\n \"description\": \"Austria\"\n },\n {\n \"name\": \"AU\",\n \"description\": \"Australia\"\n },\n {\n \"name\": \"AW\",\n \"description\": \"Aruba\"\n },\n {\n \"name\": \"AX\",\n \"description\": \"\\u00c5land Islands\"\n },\n {\n \"name\": \"AZ\",\n \"description\": \"Azerbaijan\"\n },\n {\n \"name\": \"BA\",\n \"description\": \"Bosnia and Herzegovina\"\n },\n {\n \"name\": \"BB\",\n \"description\": \"Barbados\"\n },\n {\n \"name\": \"BD\",\n \"description\": \"Bangladesh\"\n },\n {\n \"name\": \"BE\",\n \"description\": \"Belgium\"\n },\n {\n \"name\": \"BF\",\n \"description\": \"Burkina Faso\"\n },\n {\n \"name\": \"BG\",\n \"description\": \"Bulgaria\"\n },\n {\n \"name\": \"BH\",\n \"description\": \"Bahrain\"\n },\n {\n \"name\": \"BI\",\n \"description\": \"Burundi\"\n },\n {\n \"name\": \"BJ\",\n \"description\": \"Benin\"\n },\n {\n \"name\": \"BL\",\n \"description\": \"Saint Barth\\u00e9lemy\"\n },\n {\n \"name\": \"BM\",\n \"description\": \"Bermuda\"\n },\n {\n \"name\": \"BN\",\n \"description\": \"Brunei\"\n },\n {\n \"name\": \"BO\",\n \"description\": \"Bolivia\"\n },\n {\n \"name\": \"BQ\",\n \"description\": \"Bonaire\"\n },\n {\n \"name\": \"BR\",\n \"description\": \"Brazil\"\n },\n {\n \"name\": \"BS\",\n \"description\": \"Bahamas\"\n },\n {\n \"name\": \"BT\",\n \"description\": \"Bhutan\"\n },\n {\n \"name\": \"BV\",\n \"description\": \"Bouvet Island\"\n },\n {\n \"name\": \"BW\",\n \"description\": \"Botswana\"\n },\n {\n \"name\": \"BY\",\n \"description\": \"Belarus\"\n },\n {\n \"name\": \"BZ\",\n \"description\": \"Belize\"\n },\n {\n \"name\": \"CA\",\n \"description\": \"Canada\"\n },\n {\n \"name\": \"CC\",\n \"description\": \"Cocos Islands\"\n },\n {\n \"name\": \"CD\",\n \"description\": \"Democratic Republic of the Congo\"\n },\n {\n \"name\": \"CF\",\n \"description\": \"Central African Republic\"\n },\n {\n \"name\": \"CG\",\n \"description\": \"Congo\"\n },\n {\n \"name\": \"CH\",\n \"description\": \"Switzerland\"\n },\n {\n \"name\": \"CI\",\n \"description\": \"Ivory Coast\"\n },\n {\n \"name\": \"CK\",\n \"description\": \"Cook Islands\"\n },\n {\n \"name\": \"CL\",\n \"description\": \"Chile\"\n },\n {\n \"name\": \"CM\",\n \"description\": \"Cameroon\"\n },\n {\n \"name\": \"CN\",\n \"description\": \"China\"\n },\n {\n \"name\": \"CO\",\n \"description\": \"Colombia\"\n },\n {\n \"name\": \"CR\",\n \"description\": \"Costa Rica\"\n },\n {\n \"name\": \"CU\",\n \"description\": \"Cuba\"\n },\n {\n \"name\": \"CV\",\n \"description\": \"Cabo Verde\"\n },\n {\n \"name\": \"CW\",\n \"description\": \"Cura\\u00e7ao\"\n },\n {\n \"name\": \"CX\",\n \"description\": \"Christmas Island\"\n },\n {\n \"name\": \"CY\",\n \"description\": \"Cyprus\"\n },\n {\n \"name\": \"CZ\",\n \"description\": \"Czechia\"\n },\n {\n \"name\": \"DE\",\n \"description\": \"Germany\"\n },\n {\n \"name\": \"DJ\",\n \"description\": \"Djibouti\"\n },\n {\n \"name\": \"DK\",\n \"description\": \"Denmark\"\n },\n {\n \"name\": \"DM\",\n \"description\": \"Dominica\"\n },\n {\n \"name\": \"DO\",\n \"description\": \"Dominican Republic\"\n },\n {\n \"name\": \"DZ\",\n \"description\": \"Algeria\"\n },\n {\n \"name\": \"EC\",\n \"description\": \"Ecuador\"\n },\n {\n \"name\": \"EE\",\n \"description\": \"Estonia\"\n },\n {\n \"name\": \"EG\",\n \"description\": \"Egypt\"\n },\n {\n \"name\": \"EH\",\n \"description\": \"Western Sahara\"\n },\n {\n \"name\": \"ER\",\n \"description\": \"Eritrea\"\n },\n {\n \"name\": \"ES\",\n \"description\": \"Spain\"\n },\n {\n \"name\": \"ET\",\n \"description\": \"Ethiopia\"\n },\n {\n \"name\": \"FI\",\n \"description\": \"Finland\"\n },\n {\n \"name\": \"FJ\",\n \"description\": \"Fiji\"\n },\n {\n \"name\": \"FK\",\n \"description\": \"Falkland Islands\"\n },\n {\n \"name\": \"FM\",\n \"description\": \"Federated States of Micronesia\"\n },\n {\n \"name\": \"FO\",\n \"description\": \"Faroe Islands\"\n },\n {\n \"name\": \"FR\",\n \"description\": \"France\"\n },\n {\n \"name\": \"GA\",\n \"description\": \"Gabon\"\n },\n {\n \"name\": \"GB\",\n \"description\": \"United Kingdom\"\n },\n {\n \"name\": \"GD\",\n \"description\": \"Grenada\"\n },\n {\n \"name\": \"GE\",\n \"description\": \"Georgia\"\n },\n {\n \"name\": \"GF\",\n \"description\": \"French Guiana\"\n },\n {\n \"name\": \"GG\",\n \"description\": \"Guernsey\"\n },\n {\n \"name\": \"GH\",\n \"description\": \"Ghana\"\n },\n {\n \"name\": \"GI\",\n \"description\": \"Gibraltar\"\n },\n {\n \"name\": \"GL\",\n \"description\": \"Greenland\"\n },\n {\n \"name\": \"GM\",\n \"description\": \"Gambia\"\n },\n {\n \"name\": \"GN\",\n \"description\": \"Guinea\"\n },\n {\n \"name\": \"GP\",\n \"description\": \"Guadeloupe\"\n },\n {\n \"name\": \"GQ\",\n \"description\": \"Equatorial Guinea\"\n },\n {\n \"name\": \"GR\",\n \"description\": \"Greece\"\n },\n {\n \"name\": \"GS\",\n \"description\": \"South Georgia and the South Sandwich Islands\"\n },\n {\n \"name\": \"GT\",\n \"description\": \"Guatemala\"\n },\n {\n \"name\": \"GU\",\n \"description\": \"Guam\"\n },\n {\n \"name\": \"GW\",\n \"description\": \"Guinea-Bissau\"\n },\n {\n \"name\": \"GY\",\n \"description\": \"Guyana\"\n },\n {\n \"name\": \"HK\",\n \"description\": \"Hong Kong\"\n },\n {\n \"name\": \"HM\",\n \"description\": \"Heard Island and McDonald Islands\"\n },\n {\n \"name\": \"HN\",\n \"description\": \"Honduras\"\n },\n {\n \"name\": \"HR\",\n \"description\": \"Croatia\"\n },\n {\n \"name\": \"HT\",\n \"description\": \"Haiti\"\n },\n {\n \"name\": \"HU\",\n \"description\": \"Hungary\"\n },\n {\n \"name\": \"ID\",\n \"description\": \"Indonesia\"\n },\n {\n \"name\": \"IE\",\n \"description\": \"Ireland\"\n },\n {\n \"name\": \"IL\",\n \"description\": \"Israel\"\n },\n {\n \"name\": \"IM\",\n \"description\": \"Isle of Man\"\n },\n {\n \"name\": \"IN\",\n \"description\": \"India\"\n },\n {\n \"name\": \"IO\",\n \"description\": \"British Indian Ocean Territory\"\n },\n {\n \"name\": \"IQ\",\n \"description\": \"Iraq\"\n },\n {\n \"name\": \"IR\",\n \"description\": \"Iran\"\n },\n {\n \"name\": \"IS\",\n \"description\": \"Iceland\"\n },\n {\n \"name\": \"IT\",\n \"description\": \"Italy\"\n },\n {\n \"name\": \"JE\",\n \"description\": \"Jersey\"\n },\n {\n \"name\": \"JM\",\n \"description\": \"Jamaica\"\n },\n {\n \"name\": \"JO\",\n \"description\": \"Jordan\"\n },\n {\n \"name\": \"JP\",\n \"description\": \"Japan\"\n },\n {\n \"name\": \"KE\",\n \"description\": \"Kenya\"\n },\n {\n \"name\": \"KG\",\n \"description\": \"Kyrgyzstan\"\n },\n {\n \"name\": \"KH\",\n \"description\": \"Cambodia\"\n },\n {\n \"name\": \"KI\",\n \"description\": \"Kiribati\"\n },\n {\n \"name\": \"KM\",\n \"description\": \"Comoros\"\n },\n {\n \"name\": \"KN\",\n \"description\": \"Saint Kitts and Nevis\"\n },\n {\n \"name\": \"KP\",\n \"description\": \"Democratic People's Republic of Korea\"\n },\n {\n \"name\": \"KR\",\n \"description\": \"Republic of Korea\"\n },\n {\n \"name\": \"KW\",\n \"description\": \"Kuwait\"\n },\n {\n \"name\": \"KY\",\n \"description\": \"Cayman Islands\"\n },\n {\n \"name\": \"KZ\",\n \"description\": \"Kazakhstan\"\n },\n {\n \"name\": \"LA\",\n \"description\": \"Lao People's Democratic Republic\"\n },\n {\n \"name\": \"LB\",\n \"description\": \"Lebanon\"\n },\n {\n \"name\": \"LC\",\n \"description\": \"Saint Lucia\"\n },\n {\n \"name\": \"LI\",\n \"description\": \"Liechtenstein\"\n },\n {\n \"name\": \"LK\",\n \"description\": \"Sri Lanka\"\n },\n {\n \"name\": \"LR\",\n \"description\": \"Liberia\"\n },\n {\n \"name\": \"LS\",\n \"description\": \"Lesotho\"\n },\n {\n \"name\": \"LT\",\n \"description\": \"Lithuania\"\n },\n {\n \"name\": \"LU\",\n \"description\": \"Luxembourg\"\n },\n {\n \"name\": \"LV\",\n \"description\": \"Latvia\"\n },\n {\n \"name\": \"LY\",\n \"description\": \"Libya\"\n },\n {\n \"name\": \"MA\",\n \"description\": \"Morocco\"\n },\n {\n \"name\": \"MC\",\n \"description\": \"Monaco\"\n },\n {\n \"name\": \"MD\",\n \"description\": \"Moldova\"\n },\n {\n \"name\": \"ME\",\n \"description\": \"Montenegro\"\n },\n {\n \"name\": \"MF\",\n \"description\": \"Saint Martin\"\n },\n {\n \"name\": \"MG\",\n \"description\": \"Madagascar\"\n },\n {\n \"name\": \"MH\",\n \"description\": \"Marshall Islands\"\n },\n {\n \"name\": \"MK\",\n \"description\": \"North Macedonia\"\n },\n {\n \"name\": \"ML\",\n \"description\": \"Mali\"\n },\n {\n \"name\": \"MM\",\n \"description\": \"Myanmar\"\n },\n {\n \"name\": \"MN\",\n \"description\": \"Mongolia\"\n },\n {\n \"name\": \"MO\",\n \"description\": \"Macao\"\n },\n {\n \"name\": \"MP\",\n \"description\": \"Northern Mariana Islands\"\n },\n {\n \"name\": \"MQ\",\n \"description\": \"Martinique\"\n },\n {\n \"name\": \"MR\",\n \"description\": \"Mauritania\"\n },\n {\n \"name\": \"MS\",\n \"description\": \"Montserrat\"\n },\n {\n \"name\": \"MT\",\n \"description\": \"Malta\"\n },\n {\n \"name\": \"MU\",\n \"description\": \"Mauritius\"\n },\n {\n \"name\": \"MV\",\n \"description\": \"Maldives\"\n },\n {\n \"name\": \"MW\",\n \"description\": \"Malawi\"\n },\n {\n \"name\": \"MX\",\n \"description\": \"Mexico\"\n },\n {\n \"name\": \"MY\",\n \"description\": \"Malaysia\"\n },\n {\n \"name\": \"MZ\",\n \"description\": \"Mozambique\"\n },\n {\n \"name\": \"NA\",\n \"description\": \"Namibia\"\n },\n {\n \"name\": \"NC\",\n \"description\": \"New Caledonia\"\n },\n {\n \"name\": \"NE\",\n \"description\": \"Niger\"\n },\n {\n \"name\": \"NF\",\n \"description\": \"Norfolk Island\"\n },\n {\n \"name\": \"NG\",\n \"description\": \"Nigeria\"\n },\n {\n \"name\": \"NI\",\n \"description\": \"Nicaragua\"\n },\n {\n \"name\": \"NL\",\n \"description\": \"Netherlands\"\n },\n {\n \"name\": \"NO\",\n \"description\": \"Norway\"\n },\n {\n \"name\": \"NP\",\n \"description\": \"Nepal\"\n },\n {\n \"name\": \"NR\",\n \"description\": \"Nauru\"\n },\n {\n \"name\": \"NU\",\n \"description\": \"Niue\"\n },\n {\n \"name\": \"NZ\",\n \"description\": \"New Zealand\"\n },\n {\n \"name\": \"OM\",\n \"description\": \"Oman\"\n },\n {\n \"name\": \"PA\",\n \"description\": \"Panama\"\n },\n {\n \"name\": \"PE\",\n \"description\": \"Peru\"\n },\n {\n \"name\": \"PF\",\n \"description\": \"French Polynesia\"\n },\n {\n \"name\": \"PG\",\n \"description\": \"Papua New Guinea\"\n },\n {\n \"name\": \"PH\",\n \"description\": \"Philippines\"\n },\n {\n \"name\": \"PK\",\n \"description\": \"Pakistan\"\n },\n {\n \"name\": \"PL\",\n \"description\": \"Poland\"\n },\n {\n \"name\": \"PM\",\n \"description\": \"Saint Pierre and Miquelon\"\n },\n {\n \"name\": \"PN\",\n \"description\": \"Pitcairn\"\n },\n {\n \"name\": \"PR\",\n \"description\": \"Puerto Rico\"\n },\n {\n \"name\": \"PS\",\n \"description\": \"Palestine\"\n },\n {\n \"name\": \"PT\",\n \"description\": \"Portugal\"\n },\n {\n \"name\": \"PW\",\n \"description\": \"Palau\"\n },\n {\n \"name\": \"PY\",\n \"description\": \"Paraguay\"\n },\n {\n \"name\": \"QA\",\n \"description\": \"Qatar\"\n },\n {\n \"name\": \"RE\",\n \"description\": \"R\\u00e9union\"\n },\n {\n \"name\": \"RO\",\n \"description\": \"Romania\"\n },\n {\n \"name\": \"RS\",\n \"description\": \"Serbia\"\n },\n {\n \"name\": \"RU\",\n \"description\": \"Russia\"\n },\n {\n \"name\": \"RW\",\n \"description\": \"Rwanda\"\n },\n {\n \"name\": \"SA\",\n \"description\": \"Saudi Arabia\"\n },\n {\n \"name\": \"SB\",\n \"description\": \"Solomon Islands\"\n },\n {\n \"name\": \"SC\",\n \"description\": \"Seychelles\"\n },\n {\n \"name\": \"SD\",\n \"description\": \"Sudan\"\n },\n {\n \"name\": \"SE\",\n \"description\": \"Sweden\"\n },\n {\n \"name\": \"SG\",\n \"description\": \"Singapore\"\n },\n {\n \"name\": \"SH\",\n \"description\": \"Saint Helena, Ascension and Tristan da Cunha\"\n },\n {\n \"name\": \"SI\",\n \"description\": \"Slovenia\"\n },\n {\n \"name\": \"SJ\",\n \"description\": \"Svalbard and Jan Mayen\"\n },\n {\n \"name\": \"SK\",\n \"description\": \"Slovakia\"\n },\n {\n \"name\": \"SL\",\n \"description\": \"Sierra Leone\"\n },\n {\n \"name\": \"SM\",\n \"description\": \"San Marino\"\n },\n {\n \"name\": \"SN\",\n \"description\": \"Senegal\"\n },\n {\n \"name\": \"SO\",\n \"description\": \"Somalia\"\n },\n {\n \"name\": \"SR\",\n \"description\": \"Suriname\"\n },\n {\n \"name\": \"SS\",\n \"description\": \"South Sudan\"\n },\n {\n \"name\": \"ST\",\n \"description\": \"Sao Tome and Principe\"\n },\n {\n \"name\": \"SV\",\n \"description\": \"El Salvador\"\n },\n {\n \"name\": \"SX\",\n \"description\": \"Sint Maarten\"\n },\n {\n \"name\": \"SY\",\n \"description\": \"Syrian Arab Republic\"\n },\n {\n \"name\": \"SZ\",\n \"description\": \"Eswatini\"\n },\n {\n \"name\": \"TC\",\n \"description\": \"Turks and Caicos Islands\"\n },\n {\n \"name\": \"TD\",\n \"description\": \"Chad\"\n },\n {\n \"name\": \"TF\",\n \"description\": \"French Southern Territories\"\n },\n {\n \"name\": \"TG\",\n \"description\": \"Togo\"\n },\n {\n \"name\": \"TH\",\n \"description\": \"Thailand\"\n },\n {\n \"name\": \"TJ\",\n \"description\": \"Tajikistan\"\n },\n {\n \"name\": \"TK\",\n \"description\": \"Tokelau\"\n },\n {\n \"name\": \"TL\",\n \"description\": \"Timor-Leste\"\n },\n {\n \"name\": \"TM\",\n \"description\": \"Turkmenistan\"\n },\n {\n \"name\": \"TN\",\n \"description\": \"Tunisia\"\n },\n {\n \"name\": \"TO\",\n \"description\": \"Tonga\"\n },\n {\n \"name\": \"TR\",\n \"description\": \"Turkey\"\n },\n {\n \"name\": \"TT\",\n \"description\": \"Trinidad and Tobago\"\n },\n {\n \"name\": \"TV\",\n \"description\": \"Tuvalu\"\n },\n {\n \"name\": \"TW\",\n \"description\": \"Taiwan\"\n },\n {\n \"name\": \"TZ\",\n \"description\": \"Tanzania\"\n },\n {\n \"name\": \"UA\",\n \"description\": \"Ukraine\"\n },\n {\n \"name\": \"UG\",\n \"description\": \"Uganda\"\n },\n {\n \"name\": \"UM\",\n \"description\": \"United States Minor Outlying Islands\"\n },\n {\n \"name\": \"US\",\n \"description\": \"United States of America\"\n },\n {\n \"name\": \"UY\",\n \"description\": \"Uruguay\"\n },\n {\n \"name\": \"UZ\",\n \"description\": \"Uzbekistan\"\n },\n {\n \"name\": \"VA\",\n \"description\": \"Vatican City\"\n },\n {\n \"name\": \"VC\",\n \"description\": \"Saint Vincent and the Grenadines\"\n },\n {\n \"name\": \"VE\",\n \"description\": \"Venezuela\"\n },\n {\n \"name\": \"VG\",\n \"description\": \"British Virgin Islands\"\n },\n {\n \"name\": \"VI\",\n \"description\": \"U.S. Virgin Islands\"\n },\n {\n \"name\": \"VN\",\n \"description\": \"Vietnam\"\n },\n {\n \"name\": \"VU\",\n \"description\": \"Vanuatu\"\n },\n {\n \"name\": \"WF\",\n \"description\": \"Wallis and Futuna\"\n },\n {\n \"name\": \"WS\",\n \"description\": \"Samoa\"\n },\n {\n \"name\": \"YE\",\n \"description\": \"Yemen\"\n },\n {\n \"name\": \"YT\",\n \"description\": \"Mayotte\"\n },\n {\n \"name\": \"ZA\",\n \"description\": \"South Africa\"\n },\n {\n \"name\": \"ZM\",\n \"description\": \"Zambia\"\n },\n {\n \"name\": \"ZW\",\n \"description\": \"Zimbabwe\"\n }\n ],\n \"description\": \"Indicates the country associated with another entity, such as a business.\\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm).\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"first_name\": {\n \"type\": \"string\",\n \"description\": \"Optional first name when it's representing recipient.\",\n \"nullable\": true\n },\n \"last_name\": {\n \"type\": \"string\",\n \"description\": \"Optional last name when it's representing recipient.\",\n \"nullable\": true\n }\n }\n },\n \"fingerprint\": {\n \"type\": \"string\",\n \"description\": \"Intended as a Square-assigned identifier, based\\non the card number, to identify the card across multiple locations within a\\nsingle application.\",\n \"maxLength\": 255,\n \"readOnly\": true\n },\n \"customer_id\": {\n \"type\": \"string\",\n \"description\": \"**Required** The ID of a [customer](entity:Customer) to be associated with the card.\",\n \"nullable\": true\n },\n \"merchant_id\": {\n \"type\": \"string\",\n \"description\": \"The ID of the merchant associated with the card.\",\n \"readOnly\": true\n },\n \"reference_id\": {\n \"type\": \"string\",\n \"description\": \"An optional user-defined reference ID that associates this card with\\nanother entity in an external system. For example, a customer ID from an\\nexternal customer management system.\",\n \"maxLength\": 128,\n \"nullable\": true\n },\n \"enabled\": {\n \"type\": \"boolean\",\n \"description\": \"Indicates whether or not a card can be used for payments.\",\n \"readOnly\": true\n },\n \"card_type\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CARD_TYPE\",\n \"CREDIT\",\n \"DEBIT\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CARD_TYPE\",\n \"description\": \"\"\n },\n {\n \"name\": \"CREDIT\",\n \"description\": \"\"\n },\n {\n \"name\": \"DEBIT\",\n \"description\": \"\"\n }\n ],\n \"description\": \"Indicates a card's type, such as `CREDIT` or `DEBIT`.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"prepaid_type\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_PREPAID_TYPE\",\n \"NOT_PREPAID\",\n \"PREPAID\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_PREPAID_TYPE\",\n \"description\": \"\"\n },\n {\n \"name\": \"NOT_PREPAID\",\n \"description\": \"\"\n },\n {\n \"name\": \"PREPAID\",\n \"description\": \"\"\n }\n ],\n \"description\": \"Indicates a card's prepaid type, such as `NOT_PREPAID` or `PREPAID`.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"bin\": {\n \"type\": \"string\",\n \"description\": \"The first six digits of the card number, known as the Bank Identification Number (BIN). Only the Payments API\\nreturns this field.\",\n \"maxLength\": 6,\n \"readOnly\": true\n },\n \"version\": {\n \"type\": \"integer\",\n \"description\": \"Current version number of the card. Increments with each card update. Requests to update an\\nexisting Card object will be rejected unless the version in the request matches the current\\nversion for the Card.\",\n \"format\": \"int64\"\n },\n \"card_co_brand\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN\",\n \"AFTERPAY\",\n \"CLEARPAY\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN\",\n \"description\": \"\"\n },\n {\n \"name\": \"AFTERPAY\",\n \"description\": \"\"\n },\n {\n \"name\": \"CLEARPAY\",\n \"description\": \"\"\n }\n ],\n \"description\": \"Indicates the brand for a co-branded card.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"issuer_alert\": {\n \"type\": \"string\",\n \"enum\": [\n \"ISSUER_ALERT_CARD_CLOSED\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"ISSUER_ALERT_CARD_CLOSED\",\n \"description\": \"The underlying account of the card was closed, which is a strong signal that future\\ncharges to the card are likely to fail.\"\n }\n ],\n \"description\": \"Indicates the type of issuer alert for a [card on file](entity:Card).\",\n \"x-release-status\": \"BETA\"\n },\n \"issuer_alert_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp of when the current issuer alert was received and processed, in\\nRFC 3339 format.\\n\\nThis field is present only if there's an active issuer alert.\",\n \"readOnly\": true,\n \"x-release-status\": \"BETA\"\n },\n \"hsa_fsa\": {\n \"type\": \"boolean\",\n \"description\": \"Indicates whether the card is linked to a Health Savings Account (HSA) or Flexible\\nSpending Account (FSA), based on the card BIN.\",\n \"readOnly\": true,\n \"x-release-status\": \"BETA\"\n }\n }\n },\n \"entry_method\": {\n \"type\": \"string\",\n \"description\": \"The method used to enter the card's details for the payment. The method can be\\n`KEYED`, `SWIPED`, `EMV`, `ON_FILE`, or `CONTACTLESS`.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"cvv_status\": {\n \"type\": \"string\",\n \"description\": \"The status code returned from the Card Verification Value (CVV) check. The code can be\\n`CVV_ACCEPTED`, `CVV_REJECTED`, or `CVV_NOT_CHECKED`.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"avs_status\": {\n \"type\": \"string\",\n \"description\": \"The status code returned from the Address Verification System (AVS) check. The code can be\\n`AVS_ACCEPTED`, `AVS_REJECTED`, or `AVS_NOT_CHECKED`.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"auth_result_code\": {\n \"type\": \"string\",\n \"description\": \"The status code returned by the card issuer that describes the payment's\\nauthorization status.\",\n \"maxLength\": 10,\n \"readOnly\": true\n },\n \"application_identifier\": {\n \"type\": \"string\",\n \"description\": \"For EMV payments, the application ID identifies the EMV application used for the payment.\",\n \"maxLength\": 32,\n \"readOnly\": true\n },\n \"application_name\": {\n \"type\": \"string\",\n \"description\": \"For EMV payments, the human-readable name of the EMV application used for the payment.\",\n \"maxLength\": 16,\n \"readOnly\": true\n },\n \"application_cryptogram\": {\n \"type\": \"string\",\n \"description\": \"For EMV payments, the cryptogram generated for the payment.\",\n \"maxLength\": 16,\n \"readOnly\": true\n },\n \"verification_method\": {\n \"type\": \"string\",\n \"description\": \"For EMV payments, the method used to verify the cardholder's identity. The method can be\\n`PIN`, `SIGNATURE`, `PIN_AND_SIGNATURE`, `ON_DEVICE`, or `NONE`.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"verification_results\": {\n \"type\": \"string\",\n \"description\": \"For EMV payments, the results of the cardholder verification. The result can be\\n`SUCCESS`, `FAILURE`, or `UNKNOWN`.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"statement_description\": {\n \"type\": \"string\",\n \"description\": \"The statement description sent to the card networks.\\n\\nNote: The actual statement description varies and is likely to be truncated and appended with\\nadditional information on a per issuer basis.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"device_details\": {\n \"type\": \"object\",\n \"description\": \"Details about the device that took the payment.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"device_id\": {\n \"type\": \"string\",\n \"description\": \"The Square-issued ID of the device.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"device_installation_id\": {\n \"type\": \"string\",\n \"description\": \"The Square-issued installation ID for the device.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"device_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the device set by the seller.\",\n \"maxLength\": 255,\n \"nullable\": true\n }\n }\n },\n \"card_payment_timeline\": {\n \"type\": \"object\",\n \"description\": \"The timeline for card payments.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"authorized_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp when the payment was authorized, in RFC 3339 format.\",\n \"nullable\": true\n },\n \"captured_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp when the payment was captured, in RFC 3339 format.\",\n \"nullable\": true\n },\n \"voided_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp when the payment was voided, in RFC 3339 format.\",\n \"nullable\": true\n }\n }\n },\n \"refund_requires_card_presence\": {\n \"type\": \"boolean\",\n \"description\": \"Whether the card must be physically present for the payment to\\nbe refunded. If set to `true`, the card must be present.\",\n \"readOnly\": true,\n \"x-release-status\": \"BETA\"\n },\n \"errors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"description\": \"Represents an error encountered during a request to the Connect API.\\n\\nSee [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"category\",\n \"code\"\n ],\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"enum\": [\n \"API_ERROR\",\n \"AUTHENTICATION_ERROR\",\n \"INVALID_REQUEST_ERROR\",\n \"RATE_LIMIT_ERROR\",\n \"PAYMENT_METHOD_ERROR\",\n \"REFUND_ERROR\",\n \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"EXTERNAL_VENDOR_ERROR\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"API_ERROR\",\n \"description\": \"An error occurred with the Connect API itself.\"\n },\n {\n \"name\": \"AUTHENTICATION_ERROR\",\n \"description\": \"An authentication error occurred. Most commonly, the request had\\na missing, malformed, or otherwise invalid `Authorization` header.\"\n },\n {\n \"name\": \"INVALID_REQUEST_ERROR\",\n \"description\": \"The request was invalid. Most commonly, a required parameter was\\nmissing, or a provided parameter had an invalid value.\"\n },\n {\n \"name\": \"RATE_LIMIT_ERROR\",\n \"description\": \"Your application reached the Square API rate limit. You might receive this error if your application sends a high number of requests\\nto Square APIs in a short period of time.\\n\\nYour application should monitor responses for `429 RATE_LIMITED` errors and use a retry mechanism with an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\\nschedule to resend the requests at an increasingly slower rate. It is also a good practice to use a randomized delay (jitter) in your retry schedule.\"\n },\n {\n \"name\": \"PAYMENT_METHOD_ERROR\",\n \"description\": \"An error occurred while processing a payment method. Most commonly,\\nthe details of the payment method were invalid (such as a card's CVV\\nor expiration date).\"\n },\n {\n \"name\": \"REFUND_ERROR\",\n \"description\": \"An error occurred while attempting to process a refund.\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"description\": \"An error occurred when checking a merchant subscription status\"\n },\n {\n \"name\": \"EXTERNAL_VENDOR_ERROR\",\n \"description\": \"An error that is returned from an external vendor's API\"\n }\n ],\n \"description\": \"Indicates which high-level category of error has occurred during a\\nrequest to the Connect API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"code\": {\n \"type\": \"string\",\n \"enum\": [\n \"INTERNAL_SERVER_ERROR\",\n \"UNAUTHORIZED\",\n \"ACCESS_TOKEN_EXPIRED\",\n \"ACCESS_TOKEN_REVOKED\",\n \"CLIENT_DISABLED\",\n \"FORBIDDEN\",\n \"INSUFFICIENT_SCOPES\",\n \"APPLICATION_DISABLED\",\n \"V1_APPLICATION\",\n \"V1_ACCESS_TOKEN\",\n \"CARD_PROCESSING_NOT_ENABLED\",\n \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"BAD_REQUEST\",\n \"MISSING_REQUIRED_PARAMETER\",\n \"INCORRECT_TYPE\",\n \"INVALID_TIME\",\n \"INVALID_TIME_RANGE\",\n \"INVALID_VALUE\",\n \"INVALID_CURSOR\",\n \"UNKNOWN_QUERY_PARAMETER\",\n \"CONFLICTING_PARAMETERS\",\n \"EXPECTED_JSON_BODY\",\n \"INVALID_SORT_ORDER\",\n \"VALUE_REGEX_MISMATCH\",\n \"VALUE_TOO_SHORT\",\n \"VALUE_TOO_LONG\",\n \"VALUE_TOO_LOW\",\n \"VALUE_TOO_HIGH\",\n \"VALUE_EMPTY\",\n \"ARRAY_LENGTH_TOO_LONG\",\n \"ARRAY_LENGTH_TOO_SHORT\",\n \"ARRAY_EMPTY\",\n \"EXPECTED_BOOLEAN\",\n \"EXPECTED_INTEGER\",\n \"EXPECTED_FLOAT\",\n \"EXPECTED_STRING\",\n \"EXPECTED_OBJECT\",\n \"EXPECTED_ARRAY\",\n \"EXPECTED_MAP\",\n \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"INVALID_ARRAY_VALUE\",\n \"INVALID_ENUM_VALUE\",\n \"INVALID_CONTENT_TYPE\",\n \"INVALID_FORM_VALUE\",\n \"CUSTOMER_NOT_FOUND\",\n \"ONE_INSTRUMENT_EXPECTED\",\n \"NO_FIELDS_SET\",\n \"TOO_MANY_MAP_ENTRIES\",\n \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"MAP_KEY_LENGTH_TOO_LONG\",\n \"CUSTOMER_MISSING_NAME\",\n \"CUSTOMER_MISSING_EMAIL\",\n \"INVALID_PAUSE_LENGTH\",\n \"INVALID_DATE\",\n \"UNSUPPORTED_COUNTRY\",\n \"UNSUPPORTED_CURRENCY\",\n \"APPLE_TTP_PIN_TOKEN\",\n \"CARD_EXPIRED\",\n \"INVALID_EXPIRATION\",\n \"INVALID_EXPIRATION_YEAR\",\n \"INVALID_EXPIRATION_DATE\",\n \"UNSUPPORTED_CARD_BRAND\",\n \"UNSUPPORTED_ENTRY_METHOD\",\n \"INVALID_ENCRYPTED_CARD\",\n \"INVALID_CARD\",\n \"PAYMENT_AMOUNT_MISMATCH\",\n \"GENERIC_DECLINE\",\n \"CVV_FAILURE\",\n \"ADDRESS_VERIFICATION_FAILURE\",\n \"INVALID_ACCOUNT\",\n \"CURRENCY_MISMATCH\",\n \"INSUFFICIENT_FUNDS\",\n \"INSUFFICIENT_PERMISSIONS\",\n \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"INVALID_LOCATION\",\n \"TRANSACTION_LIMIT\",\n \"VOICE_FAILURE\",\n \"PAN_FAILURE\",\n \"EXPIRATION_FAILURE\",\n \"CARD_NOT_SUPPORTED\",\n \"READER_DECLINED\",\n \"INVALID_PIN\",\n \"MISSING_PIN\",\n \"MISSING_ACCOUNT_TYPE\",\n \"INVALID_POSTAL_CODE\",\n \"INVALID_FEES\",\n \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"PAYMENT_LIMIT_EXCEEDED\",\n \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"ACCOUNT_UNUSABLE\",\n \"BUYER_REFUSED_PAYMENT\",\n \"DELAYED_TRANSACTION_EXPIRED\",\n \"DELAYED_TRANSACTION_CANCELED\",\n \"DELAYED_TRANSACTION_CAPTURED\",\n \"DELAYED_TRANSACTION_FAILED\",\n \"CARD_TOKEN_EXPIRED\",\n \"CARD_TOKEN_USED\",\n \"AMOUNT_TOO_HIGH\",\n \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"REFUND_AMOUNT_INVALID\",\n \"REFUND_ALREADY_PENDING\",\n \"PAYMENT_NOT_REFUNDABLE\",\n \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"REFUND_DECLINED\",\n \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"INVALID_CARD_DATA\",\n \"SOURCE_USED\",\n \"SOURCE_EXPIRED\",\n \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"LOCATION_MISMATCH\",\n \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"IDEMPOTENCY_KEY_REUSED\",\n \"UNEXPECTED_VALUE\",\n \"SANDBOX_NOT_SUPPORTED\",\n \"INVALID_EMAIL_ADDRESS\",\n \"INVALID_PHONE_NUMBER\",\n \"CHECKOUT_EXPIRED\",\n \"BAD_CERTIFICATE\",\n \"INVALID_SQUARE_VERSION_FORMAT\",\n \"API_VERSION_INCOMPATIBLE\",\n \"CARD_PRESENCE_REQUIRED\",\n \"UNSUPPORTED_SOURCE_TYPE\",\n \"CARD_MISMATCH\",\n \"PLAID_ERROR\",\n \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"PLAID_ERROR_RATE_LIMIT\",\n \"CARD_DECLINED\",\n \"VERIFY_CVV_FAILURE\",\n \"VERIFY_AVS_FAILURE\",\n \"CARD_DECLINED_CALL_ISSUER\",\n \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"BAD_EXPIRATION\",\n \"CHIP_INSERTION_REQUIRED\",\n \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"RESERVATION_DECLINED\",\n \"UNKNOWN_BODY_PARAMETER\",\n \"NOT_FOUND\",\n \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"METHOD_NOT_ALLOWED\",\n \"NOT_ACCEPTABLE\",\n \"REQUEST_TIMEOUT\",\n \"CONFLICT\",\n \"GONE\",\n \"REQUEST_ENTITY_TOO_LARGE\",\n \"UNSUPPORTED_MEDIA_TYPE\",\n \"UNPROCESSABLE_ENTITY\",\n \"RATE_LIMITED\",\n \"NOT_IMPLEMENTED\",\n \"BAD_GATEWAY\",\n \"SERVICE_UNAVAILABLE\",\n \"TEMPORARY_ERROR\",\n \"GATEWAY_TIMEOUT\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"INTERNAL_SERVER_ERROR\",\n \"description\": \"A general server error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"UNAUTHORIZED\",\n \"description\": \"A general authorization error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_EXPIRED\",\n \"description\": \"The provided access token has expired.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_REVOKED\",\n \"description\": \"The provided access token has been revoked.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"CLIENT_DISABLED\",\n \"description\": \"The provided client has been disabled.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"FORBIDDEN\",\n \"description\": \"A general access error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_SCOPES\",\n \"description\": \"The provided access token does not have permission\\nto execute the requested action.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"APPLICATION_DISABLED\",\n \"description\": \"The calling application was disabled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_APPLICATION\",\n \"description\": \"The calling application was created prior to\\n2016-03-30 and is not compatible with v2 Square API calls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_ACCESS_TOKEN\",\n \"description\": \"The calling application is using an access token\\ncreated prior to 2016-03-30 and is not compatible with v2 Square API\\ncalls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PROCESSING_NOT_ENABLED\",\n \"description\": \"The location provided in the API call is not\\nenabled for credit card processing.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"description\": \"A required subscription was not found for the merchant\",\n \"error-category\": \"MERCHANT_SUBSCRIPTION_ERROR\"\n },\n {\n \"name\": \"BAD_REQUEST\",\n \"description\": \"A general error occurred with the request.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MISSING_REQUIRED_PARAMETER\",\n \"description\": \"The request is missing a required path, query, or\\nbody parameter.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INCORRECT_TYPE\",\n \"description\": \"The value provided in the request is the wrong\\ntype. For example, a string instead of an integer.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME\",\n \"description\": \"Formatting for the provided time value is\\nincorrect.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME_RANGE\",\n \"description\": \"The time range provided in the request is invalid.\\nFor example, the end time is before the start time.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_VALUE\",\n \"description\": \"The provided value is invalid. For example,\\nincluding `%` in a phone number.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CURSOR\",\n \"description\": \"The pagination cursor included in the request is\\ninvalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_QUERY_PARAMETER\",\n \"description\": \"The query parameters provided is invalid for the\\nrequested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICTING_PARAMETERS\",\n \"description\": \"One or more of the request parameters conflict with\\neach other.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_JSON_BODY\",\n \"description\": \"The request body is not a JSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SORT_ORDER\",\n \"description\": \"The provided sort order is not a valid key.\\nCurrently, sort order must be `ASC` or `DESC`.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_REGEX_MISMATCH\",\n \"description\": \"The provided value does not match an expected\\nregular expression.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_SHORT\",\n \"description\": \"The provided string value is shorter than the\\nminimum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LONG\",\n \"description\": \"The provided string value is longer than the\\nmaximum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LOW\",\n \"description\": \"The provided value is less than the supported\\nminimum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_HIGH\",\n \"description\": \"The provided value is greater than the supported\\nmaximum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_EMPTY\",\n \"description\": \"The provided value has a default (empty) value\\nsuch as a blank string.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_LONG\",\n \"description\": \"The provided array has too many elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_SHORT\",\n \"description\": \"The provided array has too few elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_EMPTY\",\n \"description\": \"The provided array is empty.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BOOLEAN\",\n \"description\": \"The endpoint expected the provided value to be a\\nboolean.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_INTEGER\",\n \"description\": \"The endpoint expected the provided value to be an\\ninteger.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_FLOAT\",\n \"description\": \"The endpoint expected the provided value to be a\\nfloat.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_STRING\",\n \"description\": \"The endpoint expected the provided value to be a\\nstring.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_OBJECT\",\n \"description\": \"The endpoint expected the provided value to be a\\nJSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray or list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_MAP\",\n \"description\": \"The endpoint expected the provided value to be a\\nmap or associative array.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray encoded in base64.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ARRAY_VALUE\",\n \"description\": \"One or more objects in the array does not match the\\narray type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ENUM_VALUE\",\n \"description\": \"The provided static string is not valid for the\\nfield.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CONTENT_TYPE\",\n \"description\": \"Invalid content type header.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_FORM_VALUE\",\n \"description\": \"Only relevant for applications created prior to\\n2016-03-30. Indicates there was an error while parsing form values.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_NOT_FOUND\",\n \"description\": \"The provided customer id can't be found in the merchant's customers list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ONE_INSTRUMENT_EXPECTED\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NO_FIELDS_SET\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"TOO_MANY_MAP_ENTRIES\",\n \"description\": \"Too many entries in the map field.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"description\": \"The length of one of the provided keys in the map is too short.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_LONG\",\n \"description\": \"The length of one of the provided keys in the map is too long.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_NAME\",\n \"description\": \"The provided customer does not have a recorded name.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_EMAIL\",\n \"description\": \"The provided customer does not have a recorded email.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PAUSE_LENGTH\",\n \"description\": \"The subscription cannot be paused longer than the duration of the current phase.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_DATE\",\n \"description\": \"The subscription cannot be paused/resumed on the given date.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_COUNTRY\",\n \"description\": \"The API request references an unsupported country.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CURRENCY\",\n \"description\": \"The API request references an unsupported currency.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_TTP_PIN_TOKEN\",\n \"description\": \"The payment was declined by the card issuer during an Apple Tap to Pay (TTP)\\ntransaction with a request for the card's PIN. This code will be returned alongside\\n`CARD_DECLINED_VERIFICATION_REQUIRED` as a supplemental error, and will include an\\nissuer-provided token in the `details` field that is needed to initiate the PIN\\ncollection flow on the iOS device.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_EXPIRED\",\n \"description\": \"The card issuer declined the request because the card is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit indicates a date in the past.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_YEAR\",\n \"description\": \"The expiration year for the payment card is invalid. For example,\\nit indicates a year in the past or contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_DATE\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CARD_BRAND\",\n \"description\": \"The credit card provided is not from a supported issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_ENTRY_METHOD\",\n \"description\": \"The entry method for the credit card (swipe, dip, tap) is not supported.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ENCRYPTED_CARD\",\n \"description\": \"The encrypted card information is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD\",\n \"description\": \"The credit card cannot be validated based on the provided details.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_AMOUNT_MISMATCH\",\n \"description\": \"The payment was declined because there was a payment amount mismatch.\\nThe money amount Square was expecting does not match the amount provided.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GENERIC_DECLINE\",\n \"description\": \"Square received a decline without any additional information.\\nIf the payment information seems correct, the buyer can contact their\\nissuer to ask for more information.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CVV_FAILURE\",\n \"description\": \"The card issuer declined the request because the CVV value is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ADDRESS_VERIFICATION_FAILURE\",\n \"description\": \"The card issuer declined the request because the postal code is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ACCOUNT\",\n \"description\": \"The issuer was not able to locate the account on record.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CURRENCY_MISMATCH\",\n \"description\": \"The currency associated with the payment is not valid for the provided\\nfunding source. For example, a gift card funded in USD cannot be used to process\\npayments in GBP.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_FUNDS\",\n \"description\": \"The funding source has insufficient funds to cover the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The Square account does not have the permissions to accept\\nthis payment. For example, Square may limit which merchants are\\nallowed to receive gift card payments.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The card issuer has declined the transaction due to restrictions on where the card can be used.\\nFor example, a gift card is limited to a single merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_LOCATION\",\n \"description\": \"The Square account cannot take payments in the specified region.\\nA Square account can take payments only from the region where the account was created.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"TRANSACTION_LIMIT\",\n \"description\": \"The card issuer has determined the payment amount is either too high or too low.\\nThe API returns the error code mostly for credit cards (for example, the card reached\\nthe credit limit). However, sometimes the issuer bank can indicate the error for debit\\nor prepaid cards (for example, card has insufficient funds).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VOICE_FAILURE\",\n \"description\": \"The card issuer declined the request because the issuer requires voice authorization from the cardholder. The seller should ask the customer to contact the card issuing bank to authorize the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAN_FAILURE\",\n \"description\": \"The specified card number is invalid. For example, it is of\\nincorrect length or is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"EXPIRATION_FAILURE\",\n \"description\": \"The card expiration date is either invalid or indicates that the\\ncard is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_NOT_SUPPORTED\",\n \"description\": \"The card is not supported either in the geographic region or by\\nthe [merchant category code](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) (MCC).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"READER_DECLINED\",\n \"description\": \"The Square Card Reader declined the payment for an unknown reason.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_PIN\",\n \"description\": \"The card issuer declined the request because the PIN is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_PIN\",\n \"description\": \"The payment is missing a required PIN.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_ACCOUNT_TYPE\",\n \"description\": \"The payment is missing a required ACCOUNT_TYPE parameter.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_POSTAL_CODE\",\n \"description\": \"The postal code is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_FEES\",\n \"description\": \"The app_fee_money on a payment is too high.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"description\": \"The card must be swiped, tapped, or dipped. Payments attempted by manually entering the card number are declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_LIMIT_EXCEEDED\",\n \"description\": \"Square declined the request because the payment amount exceeded the processing limit for this merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"description\": \"When a Gift Card is a payment source, you can allow taking a partial payment\\nby adding the `accept_partial_authorization` parameter in the request.\\nHowever, taking such a partial payment does not work if your request also includes\\n`tip_money`, `app_fee_money`, or both. Square declines such payments and returns\\nthe `GIFT_CARD_AVAILABLE_AMOUNT` error.\\nFor more information, see\\n[CreatePayment errors (additional information)](https://developer.squareup.com/docs/payments-api/error-codes#createpayment-errors-additional-information).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ACCOUNT_UNUSABLE\",\n \"description\": \"The account provided cannot carry out transactions.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BUYER_REFUSED_PAYMENT\",\n \"description\": \"Bank account rejected or was not authorized for the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_EXPIRED\",\n \"description\": \"The application tried to update a delayed-capture payment that has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CANCELED\",\n \"description\": \"The application tried to cancel a delayed-capture payment that was already cancelled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CAPTURED\",\n \"description\": \"The application tried to capture a delayed-capture payment that was already captured.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_FAILED\",\n \"description\": \"The application tried to update a delayed-capture payment that failed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_EXPIRED\",\n \"description\": \"The provided card token (nonce) has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_USED\",\n \"description\": \"The provided card token (nonce) was already used to process the payment or refund.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"AMOUNT_TOO_HIGH\",\n \"description\": \"The requested payment amount is too high for the provided payment source.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"description\": \"The API request references an unsupported instrument type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REFUND_AMOUNT_INVALID\",\n \"description\": \"The requested refund amount exceeds the amount available to refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ALREADY_PENDING\",\n \"description\": \"The payment already has a pending refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE\",\n \"description\": \"The payment is not refundable. For example, the payment is too old to be refunded.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"description\": \"The payment is not refundable because it has been disputed.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"description\": \"The payment is not refundable because the payment is approved and needs to be completed first before the refund is issued.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_DECLINED\",\n \"description\": \"Request failed - The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"description\": \"The Square account does not have the permissions to process this refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD_DATA\",\n \"description\": \"Generic error - the provided card data is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_USED\",\n \"description\": \"The provided source id was already used to create a card.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_EXPIRED\",\n \"description\": \"The provided source id has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"description\": \"The referenced loyalty program reward tier is not supported.\\nThis could happen if the reward tier created in a first party\\napplication is incompatible with the Loyalty API.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"LOCATION_MISMATCH\",\n \"description\": \"Generic error - the given location does not matching what is expected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"description\": \"The order attempting to be returned is not yet paid and cannot be returned.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"IDEMPOTENCY_KEY_REUSED\",\n \"description\": \"The provided idempotency key has already been used.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNEXPECTED_VALUE\",\n \"description\": \"General error - the value provided was unexpected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SANDBOX_NOT_SUPPORTED\",\n \"description\": \"The API request is not supported in sandbox.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EMAIL_ADDRESS\",\n \"description\": \"The provided email address is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PHONE_NUMBER\",\n \"description\": \"The provided phone number is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CHECKOUT_EXPIRED\",\n \"description\": \"The provided checkout URL has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"BAD_CERTIFICATE\",\n \"description\": \"Bad certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SQUARE_VERSION_FORMAT\",\n \"description\": \"The provided Square-Version is incorrectly formatted.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"API_VERSION_INCOMPATIBLE\",\n \"description\": \"The provided Square-Version is incompatible with the requested action.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PRESENCE_REQUIRED\",\n \"description\": \"The transaction requires that a card be present.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_SOURCE_TYPE\",\n \"description\": \"The API request references an unsupported source type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_MISMATCH\",\n \"description\": \"The provided card does not match what is expected.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR\",\n \"description\": \"Generic plaid error\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"description\": \"Plaid error - ITEM_LOGIN_REQUIRED\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_RATE_LIMIT\",\n \"description\": \"Plaid error - RATE_LIMIT\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED\",\n \"description\": \"The card was declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_CVV_FAILURE\",\n \"description\": \"The CVV could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_AVS_FAILURE\",\n \"description\": \"The AVS could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_CALL_ISSUER\",\n \"description\": \"The payment card was declined with a request\\nfor the card holder to call the issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"description\": \"The payment card was declined with a request\\nfor additional verification.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BAD_EXPIRATION\",\n \"description\": \"The card expiration date is either missing or\\nincorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CHIP_INSERTION_REQUIRED\",\n \"description\": \"The card issuer requires that the card be read\\nusing a chip reader.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"description\": \"The card has exhausted its available pin entry\\nretries set by the card issuer. Resolving the error typically requires the\\ncard holder to contact the card issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"RESERVATION_DECLINED\",\n \"description\": \"The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_BODY_PARAMETER\",\n \"description\": \"The body parameter is not recognized by the requested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_FOUND\",\n \"description\": \"Not Found - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"description\": \"Square could not find the associated Apple Pay certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"METHOD_NOT_ALLOWED\",\n \"description\": \"Method Not Allowed - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_ACCEPTABLE\",\n \"description\": \"Not Acceptable - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_TIMEOUT\",\n \"description\": \"Request Timeout - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICT\",\n \"description\": \"Conflict - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"GONE\",\n \"description\": \"The target resource is no longer available and this\\ncondition is likely to be permanent.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_ENTITY_TOO_LARGE\",\n \"description\": \"Request Entity Too Large - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_MEDIA_TYPE\",\n \"description\": \"Unsupported Media Type - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNPROCESSABLE_ENTITY\",\n \"description\": \"Unprocessable Entity - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"RATE_LIMITED\",\n \"description\": \"Rate Limited - a general error occurred.\",\n \"error-category\": \"RATE_LIMIT_ERROR\"\n },\n {\n \"name\": \"NOT_IMPLEMENTED\",\n \"description\": \"Not Implemented - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"BAD_GATEWAY\",\n \"description\": \"Bad Gateway - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"SERVICE_UNAVAILABLE\",\n \"description\": \"Service Unavailable - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"TEMPORARY_ERROR\",\n \"description\": \"A temporary internal error occurred. You can safely retry your call\\nusing the same idempotency key.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GATEWAY_TIMEOUT\",\n \"description\": \"Gateway Timeout - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n }\n ],\n \"description\": \"Indicates the specific error that occurred during a request to a\\nSquare API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"detail\": {\n \"type\": \"string\",\n \"description\": \"A human-readable description of the error for debugging purposes.\"\n },\n \"field\": {\n \"type\": \"string\",\n \"description\": \"The name of the field provided in the original request (if any) that\\nthe error pertains to.\"\n }\n }\n },\n \"description\": \"Information about errors encountered during the request.\",\n \"readOnly\": true\n }\n }\n },\n \"cash_details\": {\n \"type\": \"object\",\n \"description\": \"Stores details about a cash payment. Contains only non-confidential information. For more information, see \\n[Take Cash Payments](https://developer.squareup.com/docs/payments-api/take-payments/cash-payments).\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"buyer_supplied_money\"\n ],\n \"properties\": {\n \"buyer_supplied_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n },\n \"change_back_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n }\n }\n },\n \"bank_account_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about BANK_ACCOUNT type payments.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"bank_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the bank associated with the bank account.\",\n \"maxLength\": 100,\n \"nullable\": true\n },\n \"transfer_type\": {\n \"type\": \"string\",\n \"description\": \"The type of the bank transfer. The type can be `ACH` or `UNKNOWN`.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"account_ownership_type\": {\n \"type\": \"string\",\n \"description\": \"The ownership type of the bank account performing the transfer.\\nThe type can be `INDIVIDUAL`, `COMPANY`, or `ACCOUNT_TYPE_UNKNOWN`.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"fingerprint\": {\n \"type\": \"string\",\n \"description\": \"Uniquely identifies the bank account for this seller and can be used\\nto determine if payments are from the same bank account.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"country\": {\n \"type\": \"string\",\n \"description\": \"The two-letter ISO code representing the country the bank account is located in.\",\n \"minLength\": 2,\n \"maxLength\": 2,\n \"nullable\": true\n },\n \"statement_description\": {\n \"type\": \"string\",\n \"description\": \"The statement description as sent to the bank.\",\n \"maxLength\": 1000,\n \"nullable\": true\n },\n \"ach_details\": {\n \"type\": \"object\",\n \"description\": \"ACH-specific details about `BANK_ACCOUNT` type payments with the `transfer_type` of `ACH`.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"routing_number\": {\n \"type\": \"string\",\n \"description\": \"The routing number for the bank account.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"account_number_suffix\": {\n \"type\": \"string\",\n \"description\": \"The last few digits of the bank account number.\",\n \"minLength\": 1,\n \"maxLength\": 4,\n \"nullable\": true\n },\n \"account_type\": {\n \"type\": \"string\",\n \"description\": \"The type of the bank account performing the transfer. The account type can be `CHECKING`,\\n`SAVINGS`, or `UNKNOWN`.\",\n \"maxLength\": 50,\n \"nullable\": true\n }\n }\n },\n \"errors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"description\": \"Represents an error encountered during a request to the Connect API.\\n\\nSee [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"category\",\n \"code\"\n ],\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"enum\": [\n \"API_ERROR\",\n \"AUTHENTICATION_ERROR\",\n \"INVALID_REQUEST_ERROR\",\n \"RATE_LIMIT_ERROR\",\n \"PAYMENT_METHOD_ERROR\",\n \"REFUND_ERROR\",\n \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"EXTERNAL_VENDOR_ERROR\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"API_ERROR\",\n \"description\": \"An error occurred with the Connect API itself.\"\n },\n {\n \"name\": \"AUTHENTICATION_ERROR\",\n \"description\": \"An authentication error occurred. Most commonly, the request had\\na missing, malformed, or otherwise invalid `Authorization` header.\"\n },\n {\n \"name\": \"INVALID_REQUEST_ERROR\",\n \"description\": \"The request was invalid. Most commonly, a required parameter was\\nmissing, or a provided parameter had an invalid value.\"\n },\n {\n \"name\": \"RATE_LIMIT_ERROR\",\n \"description\": \"Your application reached the Square API rate limit. You might receive this error if your application sends a high number of requests\\nto Square APIs in a short period of time.\\n\\nYour application should monitor responses for `429 RATE_LIMITED` errors and use a retry mechanism with an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\\nschedule to resend the requests at an increasingly slower rate. It is also a good practice to use a randomized delay (jitter) in your retry schedule.\"\n },\n {\n \"name\": \"PAYMENT_METHOD_ERROR\",\n \"description\": \"An error occurred while processing a payment method. Most commonly,\\nthe details of the payment method were invalid (such as a card's CVV\\nor expiration date).\"\n },\n {\n \"name\": \"REFUND_ERROR\",\n \"description\": \"An error occurred while attempting to process a refund.\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"description\": \"An error occurred when checking a merchant subscription status\"\n },\n {\n \"name\": \"EXTERNAL_VENDOR_ERROR\",\n \"description\": \"An error that is returned from an external vendor's API\"\n }\n ],\n \"description\": \"Indicates which high-level category of error has occurred during a\\nrequest to the Connect API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"code\": {\n \"type\": \"string\",\n \"enum\": [\n \"INTERNAL_SERVER_ERROR\",\n \"UNAUTHORIZED\",\n \"ACCESS_TOKEN_EXPIRED\",\n \"ACCESS_TOKEN_REVOKED\",\n \"CLIENT_DISABLED\",\n \"FORBIDDEN\",\n \"INSUFFICIENT_SCOPES\",\n \"APPLICATION_DISABLED\",\n \"V1_APPLICATION\",\n \"V1_ACCESS_TOKEN\",\n \"CARD_PROCESSING_NOT_ENABLED\",\n \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"BAD_REQUEST\",\n \"MISSING_REQUIRED_PARAMETER\",\n \"INCORRECT_TYPE\",\n \"INVALID_TIME\",\n \"INVALID_TIME_RANGE\",\n \"INVALID_VALUE\",\n \"INVALID_CURSOR\",\n \"UNKNOWN_QUERY_PARAMETER\",\n \"CONFLICTING_PARAMETERS\",\n \"EXPECTED_JSON_BODY\",\n \"INVALID_SORT_ORDER\",\n \"VALUE_REGEX_MISMATCH\",\n \"VALUE_TOO_SHORT\",\n \"VALUE_TOO_LONG\",\n \"VALUE_TOO_LOW\",\n \"VALUE_TOO_HIGH\",\n \"VALUE_EMPTY\",\n \"ARRAY_LENGTH_TOO_LONG\",\n \"ARRAY_LENGTH_TOO_SHORT\",\n \"ARRAY_EMPTY\",\n \"EXPECTED_BOOLEAN\",\n \"EXPECTED_INTEGER\",\n \"EXPECTED_FLOAT\",\n \"EXPECTED_STRING\",\n \"EXPECTED_OBJECT\",\n \"EXPECTED_ARRAY\",\n \"EXPECTED_MAP\",\n \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"INVALID_ARRAY_VALUE\",\n \"INVALID_ENUM_VALUE\",\n \"INVALID_CONTENT_TYPE\",\n \"INVALID_FORM_VALUE\",\n \"CUSTOMER_NOT_FOUND\",\n \"ONE_INSTRUMENT_EXPECTED\",\n \"NO_FIELDS_SET\",\n \"TOO_MANY_MAP_ENTRIES\",\n \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"MAP_KEY_LENGTH_TOO_LONG\",\n \"CUSTOMER_MISSING_NAME\",\n \"CUSTOMER_MISSING_EMAIL\",\n \"INVALID_PAUSE_LENGTH\",\n \"INVALID_DATE\",\n \"UNSUPPORTED_COUNTRY\",\n \"UNSUPPORTED_CURRENCY\",\n \"APPLE_TTP_PIN_TOKEN\",\n \"CARD_EXPIRED\",\n \"INVALID_EXPIRATION\",\n \"INVALID_EXPIRATION_YEAR\",\n \"INVALID_EXPIRATION_DATE\",\n \"UNSUPPORTED_CARD_BRAND\",\n \"UNSUPPORTED_ENTRY_METHOD\",\n \"INVALID_ENCRYPTED_CARD\",\n \"INVALID_CARD\",\n \"PAYMENT_AMOUNT_MISMATCH\",\n \"GENERIC_DECLINE\",\n \"CVV_FAILURE\",\n \"ADDRESS_VERIFICATION_FAILURE\",\n \"INVALID_ACCOUNT\",\n \"CURRENCY_MISMATCH\",\n \"INSUFFICIENT_FUNDS\",\n \"INSUFFICIENT_PERMISSIONS\",\n \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"INVALID_LOCATION\",\n \"TRANSACTION_LIMIT\",\n \"VOICE_FAILURE\",\n \"PAN_FAILURE\",\n \"EXPIRATION_FAILURE\",\n \"CARD_NOT_SUPPORTED\",\n \"READER_DECLINED\",\n \"INVALID_PIN\",\n \"MISSING_PIN\",\n \"MISSING_ACCOUNT_TYPE\",\n \"INVALID_POSTAL_CODE\",\n \"INVALID_FEES\",\n \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"PAYMENT_LIMIT_EXCEEDED\",\n \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"ACCOUNT_UNUSABLE\",\n \"BUYER_REFUSED_PAYMENT\",\n \"DELAYED_TRANSACTION_EXPIRED\",\n \"DELAYED_TRANSACTION_CANCELED\",\n \"DELAYED_TRANSACTION_CAPTURED\",\n \"DELAYED_TRANSACTION_FAILED\",\n \"CARD_TOKEN_EXPIRED\",\n \"CARD_TOKEN_USED\",\n \"AMOUNT_TOO_HIGH\",\n \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"REFUND_AMOUNT_INVALID\",\n \"REFUND_ALREADY_PENDING\",\n \"PAYMENT_NOT_REFUNDABLE\",\n \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"REFUND_DECLINED\",\n \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"INVALID_CARD_DATA\",\n \"SOURCE_USED\",\n \"SOURCE_EXPIRED\",\n \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"LOCATION_MISMATCH\",\n \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"IDEMPOTENCY_KEY_REUSED\",\n \"UNEXPECTED_VALUE\",\n \"SANDBOX_NOT_SUPPORTED\",\n \"INVALID_EMAIL_ADDRESS\",\n \"INVALID_PHONE_NUMBER\",\n \"CHECKOUT_EXPIRED\",\n \"BAD_CERTIFICATE\",\n \"INVALID_SQUARE_VERSION_FORMAT\",\n \"API_VERSION_INCOMPATIBLE\",\n \"CARD_PRESENCE_REQUIRED\",\n \"UNSUPPORTED_SOURCE_TYPE\",\n \"CARD_MISMATCH\",\n \"PLAID_ERROR\",\n \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"PLAID_ERROR_RATE_LIMIT\",\n \"CARD_DECLINED\",\n \"VERIFY_CVV_FAILURE\",\n \"VERIFY_AVS_FAILURE\",\n \"CARD_DECLINED_CALL_ISSUER\",\n \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"BAD_EXPIRATION\",\n \"CHIP_INSERTION_REQUIRED\",\n \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"RESERVATION_DECLINED\",\n \"UNKNOWN_BODY_PARAMETER\",\n \"NOT_FOUND\",\n \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"METHOD_NOT_ALLOWED\",\n \"NOT_ACCEPTABLE\",\n \"REQUEST_TIMEOUT\",\n \"CONFLICT\",\n \"GONE\",\n \"REQUEST_ENTITY_TOO_LARGE\",\n \"UNSUPPORTED_MEDIA_TYPE\",\n \"UNPROCESSABLE_ENTITY\",\n \"RATE_LIMITED\",\n \"NOT_IMPLEMENTED\",\n \"BAD_GATEWAY\",\n \"SERVICE_UNAVAILABLE\",\n \"TEMPORARY_ERROR\",\n \"GATEWAY_TIMEOUT\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"INTERNAL_SERVER_ERROR\",\n \"description\": \"A general server error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"UNAUTHORIZED\",\n \"description\": \"A general authorization error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_EXPIRED\",\n \"description\": \"The provided access token has expired.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_REVOKED\",\n \"description\": \"The provided access token has been revoked.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"CLIENT_DISABLED\",\n \"description\": \"The provided client has been disabled.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"FORBIDDEN\",\n \"description\": \"A general access error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_SCOPES\",\n \"description\": \"The provided access token does not have permission\\nto execute the requested action.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"APPLICATION_DISABLED\",\n \"description\": \"The calling application was disabled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_APPLICATION\",\n \"description\": \"The calling application was created prior to\\n2016-03-30 and is not compatible with v2 Square API calls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_ACCESS_TOKEN\",\n \"description\": \"The calling application is using an access token\\ncreated prior to 2016-03-30 and is not compatible with v2 Square API\\ncalls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PROCESSING_NOT_ENABLED\",\n \"description\": \"The location provided in the API call is not\\nenabled for credit card processing.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"description\": \"A required subscription was not found for the merchant\",\n \"error-category\": \"MERCHANT_SUBSCRIPTION_ERROR\"\n },\n {\n \"name\": \"BAD_REQUEST\",\n \"description\": \"A general error occurred with the request.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MISSING_REQUIRED_PARAMETER\",\n \"description\": \"The request is missing a required path, query, or\\nbody parameter.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INCORRECT_TYPE\",\n \"description\": \"The value provided in the request is the wrong\\ntype. For example, a string instead of an integer.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME\",\n \"description\": \"Formatting for the provided time value is\\nincorrect.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME_RANGE\",\n \"description\": \"The time range provided in the request is invalid.\\nFor example, the end time is before the start time.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_VALUE\",\n \"description\": \"The provided value is invalid. For example,\\nincluding `%` in a phone number.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CURSOR\",\n \"description\": \"The pagination cursor included in the request is\\ninvalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_QUERY_PARAMETER\",\n \"description\": \"The query parameters provided is invalid for the\\nrequested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICTING_PARAMETERS\",\n \"description\": \"One or more of the request parameters conflict with\\neach other.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_JSON_BODY\",\n \"description\": \"The request body is not a JSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SORT_ORDER\",\n \"description\": \"The provided sort order is not a valid key.\\nCurrently, sort order must be `ASC` or `DESC`.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_REGEX_MISMATCH\",\n \"description\": \"The provided value does not match an expected\\nregular expression.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_SHORT\",\n \"description\": \"The provided string value is shorter than the\\nminimum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LONG\",\n \"description\": \"The provided string value is longer than the\\nmaximum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LOW\",\n \"description\": \"The provided value is less than the supported\\nminimum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_HIGH\",\n \"description\": \"The provided value is greater than the supported\\nmaximum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_EMPTY\",\n \"description\": \"The provided value has a default (empty) value\\nsuch as a blank string.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_LONG\",\n \"description\": \"The provided array has too many elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_SHORT\",\n \"description\": \"The provided array has too few elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_EMPTY\",\n \"description\": \"The provided array is empty.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BOOLEAN\",\n \"description\": \"The endpoint expected the provided value to be a\\nboolean.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_INTEGER\",\n \"description\": \"The endpoint expected the provided value to be an\\ninteger.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_FLOAT\",\n \"description\": \"The endpoint expected the provided value to be a\\nfloat.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_STRING\",\n \"description\": \"The endpoint expected the provided value to be a\\nstring.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_OBJECT\",\n \"description\": \"The endpoint expected the provided value to be a\\nJSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray or list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_MAP\",\n \"description\": \"The endpoint expected the provided value to be a\\nmap or associative array.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray encoded in base64.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ARRAY_VALUE\",\n \"description\": \"One or more objects in the array does not match the\\narray type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ENUM_VALUE\",\n \"description\": \"The provided static string is not valid for the\\nfield.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CONTENT_TYPE\",\n \"description\": \"Invalid content type header.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_FORM_VALUE\",\n \"description\": \"Only relevant for applications created prior to\\n2016-03-30. Indicates there was an error while parsing form values.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_NOT_FOUND\",\n \"description\": \"The provided customer id can't be found in the merchant's customers list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ONE_INSTRUMENT_EXPECTED\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NO_FIELDS_SET\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"TOO_MANY_MAP_ENTRIES\",\n \"description\": \"Too many entries in the map field.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"description\": \"The length of one of the provided keys in the map is too short.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_LONG\",\n \"description\": \"The length of one of the provided keys in the map is too long.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_NAME\",\n \"description\": \"The provided customer does not have a recorded name.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_EMAIL\",\n \"description\": \"The provided customer does not have a recorded email.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PAUSE_LENGTH\",\n \"description\": \"The subscription cannot be paused longer than the duration of the current phase.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_DATE\",\n \"description\": \"The subscription cannot be paused/resumed on the given date.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_COUNTRY\",\n \"description\": \"The API request references an unsupported country.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CURRENCY\",\n \"description\": \"The API request references an unsupported currency.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_TTP_PIN_TOKEN\",\n \"description\": \"The payment was declined by the card issuer during an Apple Tap to Pay (TTP)\\ntransaction with a request for the card's PIN. This code will be returned alongside\\n`CARD_DECLINED_VERIFICATION_REQUIRED` as a supplemental error, and will include an\\nissuer-provided token in the `details` field that is needed to initiate the PIN\\ncollection flow on the iOS device.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_EXPIRED\",\n \"description\": \"The card issuer declined the request because the card is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit indicates a date in the past.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_YEAR\",\n \"description\": \"The expiration year for the payment card is invalid. For example,\\nit indicates a year in the past or contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_DATE\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CARD_BRAND\",\n \"description\": \"The credit card provided is not from a supported issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_ENTRY_METHOD\",\n \"description\": \"The entry method for the credit card (swipe, dip, tap) is not supported.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ENCRYPTED_CARD\",\n \"description\": \"The encrypted card information is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD\",\n \"description\": \"The credit card cannot be validated based on the provided details.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_AMOUNT_MISMATCH\",\n \"description\": \"The payment was declined because there was a payment amount mismatch.\\nThe money amount Square was expecting does not match the amount provided.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GENERIC_DECLINE\",\n \"description\": \"Square received a decline without any additional information.\\nIf the payment information seems correct, the buyer can contact their\\nissuer to ask for more information.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CVV_FAILURE\",\n \"description\": \"The card issuer declined the request because the CVV value is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ADDRESS_VERIFICATION_FAILURE\",\n \"description\": \"The card issuer declined the request because the postal code is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ACCOUNT\",\n \"description\": \"The issuer was not able to locate the account on record.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CURRENCY_MISMATCH\",\n \"description\": \"The currency associated with the payment is not valid for the provided\\nfunding source. For example, a gift card funded in USD cannot be used to process\\npayments in GBP.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_FUNDS\",\n \"description\": \"The funding source has insufficient funds to cover the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The Square account does not have the permissions to accept\\nthis payment. For example, Square may limit which merchants are\\nallowed to receive gift card payments.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The card issuer has declined the transaction due to restrictions on where the card can be used.\\nFor example, a gift card is limited to a single merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_LOCATION\",\n \"description\": \"The Square account cannot take payments in the specified region.\\nA Square account can take payments only from the region where the account was created.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"TRANSACTION_LIMIT\",\n \"description\": \"The card issuer has determined the payment amount is either too high or too low.\\nThe API returns the error code mostly for credit cards (for example, the card reached\\nthe credit limit). However, sometimes the issuer bank can indicate the error for debit\\nor prepaid cards (for example, card has insufficient funds).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VOICE_FAILURE\",\n \"description\": \"The card issuer declined the request because the issuer requires voice authorization from the cardholder. The seller should ask the customer to contact the card issuing bank to authorize the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAN_FAILURE\",\n \"description\": \"The specified card number is invalid. For example, it is of\\nincorrect length or is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"EXPIRATION_FAILURE\",\n \"description\": \"The card expiration date is either invalid or indicates that the\\ncard is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_NOT_SUPPORTED\",\n \"description\": \"The card is not supported either in the geographic region or by\\nthe [merchant category code](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) (MCC).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"READER_DECLINED\",\n \"description\": \"The Square Card Reader declined the payment for an unknown reason.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_PIN\",\n \"description\": \"The card issuer declined the request because the PIN is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_PIN\",\n \"description\": \"The payment is missing a required PIN.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_ACCOUNT_TYPE\",\n \"description\": \"The payment is missing a required ACCOUNT_TYPE parameter.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_POSTAL_CODE\",\n \"description\": \"The postal code is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_FEES\",\n \"description\": \"The app_fee_money on a payment is too high.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"description\": \"The card must be swiped, tapped, or dipped. Payments attempted by manually entering the card number are declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_LIMIT_EXCEEDED\",\n \"description\": \"Square declined the request because the payment amount exceeded the processing limit for this merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"description\": \"When a Gift Card is a payment source, you can allow taking a partial payment\\nby adding the `accept_partial_authorization` parameter in the request.\\nHowever, taking such a partial payment does not work if your request also includes\\n`tip_money`, `app_fee_money`, or both. Square declines such payments and returns\\nthe `GIFT_CARD_AVAILABLE_AMOUNT` error.\\nFor more information, see\\n[CreatePayment errors (additional information)](https://developer.squareup.com/docs/payments-api/error-codes#createpayment-errors-additional-information).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ACCOUNT_UNUSABLE\",\n \"description\": \"The account provided cannot carry out transactions.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BUYER_REFUSED_PAYMENT\",\n \"description\": \"Bank account rejected or was not authorized for the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_EXPIRED\",\n \"description\": \"The application tried to update a delayed-capture payment that has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CANCELED\",\n \"description\": \"The application tried to cancel a delayed-capture payment that was already cancelled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CAPTURED\",\n \"description\": \"The application tried to capture a delayed-capture payment that was already captured.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_FAILED\",\n \"description\": \"The application tried to update a delayed-capture payment that failed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_EXPIRED\",\n \"description\": \"The provided card token (nonce) has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_USED\",\n \"description\": \"The provided card token (nonce) was already used to process the payment or refund.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"AMOUNT_TOO_HIGH\",\n \"description\": \"The requested payment amount is too high for the provided payment source.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"description\": \"The API request references an unsupported instrument type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REFUND_AMOUNT_INVALID\",\n \"description\": \"The requested refund amount exceeds the amount available to refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ALREADY_PENDING\",\n \"description\": \"The payment already has a pending refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE\",\n \"description\": \"The payment is not refundable. For example, the payment is too old to be refunded.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"description\": \"The payment is not refundable because it has been disputed.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"description\": \"The payment is not refundable because the payment is approved and needs to be completed first before the refund is issued.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_DECLINED\",\n \"description\": \"Request failed - The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"description\": \"The Square account does not have the permissions to process this refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD_DATA\",\n \"description\": \"Generic error - the provided card data is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_USED\",\n \"description\": \"The provided source id was already used to create a card.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_EXPIRED\",\n \"description\": \"The provided source id has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"description\": \"The referenced loyalty program reward tier is not supported.\\nThis could happen if the reward tier created in a first party\\napplication is incompatible with the Loyalty API.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"LOCATION_MISMATCH\",\n \"description\": \"Generic error - the given location does not matching what is expected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"description\": \"The order attempting to be returned is not yet paid and cannot be returned.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"IDEMPOTENCY_KEY_REUSED\",\n \"description\": \"The provided idempotency key has already been used.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNEXPECTED_VALUE\",\n \"description\": \"General error - the value provided was unexpected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SANDBOX_NOT_SUPPORTED\",\n \"description\": \"The API request is not supported in sandbox.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EMAIL_ADDRESS\",\n \"description\": \"The provided email address is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PHONE_NUMBER\",\n \"description\": \"The provided phone number is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CHECKOUT_EXPIRED\",\n \"description\": \"The provided checkout URL has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"BAD_CERTIFICATE\",\n \"description\": \"Bad certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SQUARE_VERSION_FORMAT\",\n \"description\": \"The provided Square-Version is incorrectly formatted.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"API_VERSION_INCOMPATIBLE\",\n \"description\": \"The provided Square-Version is incompatible with the requested action.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PRESENCE_REQUIRED\",\n \"description\": \"The transaction requires that a card be present.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_SOURCE_TYPE\",\n \"description\": \"The API request references an unsupported source type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_MISMATCH\",\n \"description\": \"The provided card does not match what is expected.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR\",\n \"description\": \"Generic plaid error\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"description\": \"Plaid error - ITEM_LOGIN_REQUIRED\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_RATE_LIMIT\",\n \"description\": \"Plaid error - RATE_LIMIT\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED\",\n \"description\": \"The card was declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_CVV_FAILURE\",\n \"description\": \"The CVV could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_AVS_FAILURE\",\n \"description\": \"The AVS could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_CALL_ISSUER\",\n \"description\": \"The payment card was declined with a request\\nfor the card holder to call the issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"description\": \"The payment card was declined with a request\\nfor additional verification.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BAD_EXPIRATION\",\n \"description\": \"The card expiration date is either missing or\\nincorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CHIP_INSERTION_REQUIRED\",\n \"description\": \"The card issuer requires that the card be read\\nusing a chip reader.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"description\": \"The card has exhausted its available pin entry\\nretries set by the card issuer. Resolving the error typically requires the\\ncard holder to contact the card issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"RESERVATION_DECLINED\",\n \"description\": \"The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_BODY_PARAMETER\",\n \"description\": \"The body parameter is not recognized by the requested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_FOUND\",\n \"description\": \"Not Found - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"description\": \"Square could not find the associated Apple Pay certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"METHOD_NOT_ALLOWED\",\n \"description\": \"Method Not Allowed - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_ACCEPTABLE\",\n \"description\": \"Not Acceptable - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_TIMEOUT\",\n \"description\": \"Request Timeout - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICT\",\n \"description\": \"Conflict - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"GONE\",\n \"description\": \"The target resource is no longer available and this\\ncondition is likely to be permanent.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_ENTITY_TOO_LARGE\",\n \"description\": \"Request Entity Too Large - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_MEDIA_TYPE\",\n \"description\": \"Unsupported Media Type - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNPROCESSABLE_ENTITY\",\n \"description\": \"Unprocessable Entity - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"RATE_LIMITED\",\n \"description\": \"Rate Limited - a general error occurred.\",\n \"error-category\": \"RATE_LIMIT_ERROR\"\n },\n {\n \"name\": \"NOT_IMPLEMENTED\",\n \"description\": \"Not Implemented - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"BAD_GATEWAY\",\n \"description\": \"Bad Gateway - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"SERVICE_UNAVAILABLE\",\n \"description\": \"Service Unavailable - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"TEMPORARY_ERROR\",\n \"description\": \"A temporary internal error occurred. You can safely retry your call\\nusing the same idempotency key.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GATEWAY_TIMEOUT\",\n \"description\": \"Gateway Timeout - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n }\n ],\n \"description\": \"Indicates the specific error that occurred during a request to a\\nSquare API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"detail\": {\n \"type\": \"string\",\n \"description\": \"A human-readable description of the error for debugging purposes.\"\n },\n \"field\": {\n \"type\": \"string\",\n \"description\": \"The name of the field provided in the original request (if any) that\\nthe error pertains to.\"\n }\n }\n },\n \"description\": \"Information about errors encountered during the request.\",\n \"nullable\": true\n }\n }\n },\n \"external_details\": {\n \"type\": \"object\",\n \"description\": \"Stores details about an external payment. Contains only non-confidential information.\\nFor more information, see \\n[Take External Payments](https://developer.squareup.com/docs/payments-api/take-payments/external-payments).\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"type\",\n \"source\"\n ],\n \"properties\": {\n \"type\": {\n \"type\": \"string\",\n \"description\": \"The type of external payment the seller received. It can be one of the following:\\n- CHECK - Paid using a physical check.\\n- BANK_TRANSFER - Paid using external bank transfer.\\n- OTHER\\\\_GIFT\\\\_CARD - Paid using a non-Square gift card.\\n- CRYPTO - Paid using a crypto currency.\\n- SQUARE_CASH - Paid using Square Cash App.\\n- SOCIAL - Paid using peer-to-peer payment applications.\\n- EXTERNAL - A third-party application gathered this payment outside of Square.\\n- EMONEY - Paid using an E-money provider.\\n- CARD - A credit or debit card that Square does not support.\\n- STORED_BALANCE - Use for house accounts, store credit, and so forth.\\n- FOOD_VOUCHER - Restaurant voucher provided by employers to employees to pay for meals\\n- OTHER - A type not listed here.\",\n \"maxLength\": 50\n },\n \"source\": {\n \"type\": \"string\",\n \"description\": \"A description of the external payment source. For example, \\n\\\"Food Delivery Service\\\".\",\n \"maxLength\": 255\n },\n \"source_id\": {\n \"type\": \"string\",\n \"description\": \"An ID to associate the payment to its originating source.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"source_fee_money\": {\n \"type\": \"object\",\n \"description\": \"Represents an amount of money. `Money` fields can be signed or unsigned.\\nFields that do not explicitly define whether they are signed or unsigned are\\nconsidered unsigned and can only hold positive amounts. For signed fields, the\\nsign of the value indicates the purpose of the money transfer. See\\n[Working with Monetary Amounts](https://developer.squareup.com/docs/build-basics/working-with-monetary-amounts)\\nfor more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"amount\": {\n \"type\": \"integer\",\n \"description\": \"The amount of money, in the smallest denomination of the currency\\nindicated by `currency`. For example, when `currency` is `USD`, `amount` is\\nin cents. Monetary amounts can be positive or negative. See the specific\\nfield description to determine the meaning of the sign in a particular case.\",\n \"format\": \"int64\",\n \"nullable\": true\n },\n \"currency\": {\n \"type\": \"string\",\n \"enum\": [\n \"UNKNOWN_CURRENCY\",\n \"AED\",\n \"AFN\",\n \"ALL\",\n \"AMD\",\n \"ANG\",\n \"AOA\",\n \"ARS\",\n \"AUD\",\n \"AWG\",\n \"AZN\",\n \"BAM\",\n \"BBD\",\n \"BDT\",\n \"BGN\",\n \"BHD\",\n \"BIF\",\n \"BMD\",\n \"BND\",\n \"BOB\",\n \"BOV\",\n \"BRL\",\n \"BSD\",\n \"BTN\",\n \"BWP\",\n \"BYR\",\n \"BZD\",\n \"CAD\",\n \"CDF\",\n \"CHE\",\n \"CHF\",\n \"CHW\",\n \"CLF\",\n \"CLP\",\n \"CNY\",\n \"COP\",\n \"COU\",\n \"CRC\",\n \"CUC\",\n \"CUP\",\n \"CVE\",\n \"CZK\",\n \"DJF\",\n \"DKK\",\n \"DOP\",\n \"DZD\",\n \"EGP\",\n \"ERN\",\n \"ETB\",\n \"EUR\",\n \"FJD\",\n \"FKP\",\n \"GBP\",\n \"GEL\",\n \"GHS\",\n \"GIP\",\n \"GMD\",\n \"GNF\",\n \"GTQ\",\n \"GYD\",\n \"HKD\",\n \"HNL\",\n \"HRK\",\n \"HTG\",\n \"HUF\",\n \"IDR\",\n \"ILS\",\n \"INR\",\n \"IQD\",\n \"IRR\",\n \"ISK\",\n \"JMD\",\n \"JOD\",\n \"JPY\",\n \"KES\",\n \"KGS\",\n \"KHR\",\n \"KMF\",\n \"KPW\",\n \"KRW\",\n \"KWD\",\n \"KYD\",\n \"KZT\",\n \"LAK\",\n \"LBP\",\n \"LKR\",\n \"LRD\",\n \"LSL\",\n \"LTL\",\n \"LVL\",\n \"LYD\",\n \"MAD\",\n \"MDL\",\n \"MGA\",\n \"MKD\",\n \"MMK\",\n \"MNT\",\n \"MOP\",\n \"MRO\",\n \"MUR\",\n \"MVR\",\n \"MWK\",\n \"MXN\",\n \"MXV\",\n \"MYR\",\n \"MZN\",\n \"NAD\",\n \"NGN\",\n \"NIO\",\n \"NOK\",\n \"NPR\",\n \"NZD\",\n \"OMR\",\n \"PAB\",\n \"PEN\",\n \"PGK\",\n \"PHP\",\n \"PKR\",\n \"PLN\",\n \"PYG\",\n \"QAR\",\n \"RON\",\n \"RSD\",\n \"RUB\",\n \"RWF\",\n \"SAR\",\n \"SBD\",\n \"SCR\",\n \"SDG\",\n \"SEK\",\n \"SGD\",\n \"SHP\",\n \"SLL\",\n \"SLE\",\n \"SOS\",\n \"SRD\",\n \"SSP\",\n \"STD\",\n \"SVC\",\n \"SYP\",\n \"SZL\",\n \"THB\",\n \"TJS\",\n \"TMT\",\n \"TND\",\n \"TOP\",\n \"TRY\",\n \"TTD\",\n \"TWD\",\n \"TZS\",\n \"UAH\",\n \"UGX\",\n \"USD\",\n \"USN\",\n \"USS\",\n \"UYI\",\n \"UYU\",\n \"UZS\",\n \"VEF\",\n \"VND\",\n \"VUV\",\n \"WST\",\n \"XAF\",\n \"XAG\",\n \"XAU\",\n \"XBA\",\n \"XBB\",\n \"XBC\",\n \"XBD\",\n \"XCD\",\n \"XDR\",\n \"XOF\",\n \"XPD\",\n \"XPF\",\n \"XPT\",\n \"XTS\",\n \"XXX\",\n \"YER\",\n \"ZAR\",\n \"ZMK\",\n \"ZMW\",\n \"BTC\",\n \"XUS\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"UNKNOWN_CURRENCY\",\n \"description\": \"Unknown currency\"\n },\n {\n \"name\": \"AED\",\n \"description\": \"United Arab Emirates dirham\"\n },\n {\n \"name\": \"AFN\",\n \"description\": \"Afghan afghani\"\n },\n {\n \"name\": \"ALL\",\n \"description\": \"Albanian lek\"\n },\n {\n \"name\": \"AMD\",\n \"description\": \"Armenian dram\"\n },\n {\n \"name\": \"ANG\",\n \"description\": \"Netherlands Antillean guilder\"\n },\n {\n \"name\": \"AOA\",\n \"description\": \"Angolan kwanza\"\n },\n {\n \"name\": \"ARS\",\n \"description\": \"Argentine peso\"\n },\n {\n \"name\": \"AUD\",\n \"description\": \"Australian dollar\"\n },\n {\n \"name\": \"AWG\",\n \"description\": \"Aruban florin\"\n },\n {\n \"name\": \"AZN\",\n \"description\": \"Azerbaijani manat\"\n },\n {\n \"name\": \"BAM\",\n \"description\": \"Bosnia and Herzegovina convertible mark\"\n },\n {\n \"name\": \"BBD\",\n \"description\": \"Barbados dollar\"\n },\n {\n \"name\": \"BDT\",\n \"description\": \"Bangladeshi taka\"\n },\n {\n \"name\": \"BGN\",\n \"description\": \"Bulgarian lev\"\n },\n {\n \"name\": \"BHD\",\n \"description\": \"Bahraini dinar\"\n },\n {\n \"name\": \"BIF\",\n \"description\": \"Burundian franc\"\n },\n {\n \"name\": \"BMD\",\n \"description\": \"Bermudian dollar\"\n },\n {\n \"name\": \"BND\",\n \"description\": \"Brunei dollar\"\n },\n {\n \"name\": \"BOB\",\n \"description\": \"Boliviano\"\n },\n {\n \"name\": \"BOV\",\n \"description\": \"Bolivian Mvdol\"\n },\n {\n \"name\": \"BRL\",\n \"description\": \"Brazilian real\"\n },\n {\n \"name\": \"BSD\",\n \"description\": \"Bahamian dollar\"\n },\n {\n \"name\": \"BTN\",\n \"description\": \"Bhutanese ngultrum\"\n },\n {\n \"name\": \"BWP\",\n \"description\": \"Botswana pula\"\n },\n {\n \"name\": \"BYR\",\n \"description\": \"Belarusian ruble\"\n },\n {\n \"name\": \"BZD\",\n \"description\": \"Belize dollar\"\n },\n {\n \"name\": \"CAD\",\n \"description\": \"Canadian dollar\"\n },\n {\n \"name\": \"CDF\",\n \"description\": \"Congolese franc\"\n },\n {\n \"name\": \"CHE\",\n \"description\": \"WIR Euro\"\n },\n {\n \"name\": \"CHF\",\n \"description\": \"Swiss franc\"\n },\n {\n \"name\": \"CHW\",\n \"description\": \"WIR Franc\"\n },\n {\n \"name\": \"CLF\",\n \"description\": \"Unidad de Fomento\"\n },\n {\n \"name\": \"CLP\",\n \"description\": \"Chilean peso\"\n },\n {\n \"name\": \"CNY\",\n \"description\": \"Chinese yuan\"\n },\n {\n \"name\": \"COP\",\n \"description\": \"Colombian peso\"\n },\n {\n \"name\": \"COU\",\n \"description\": \"Unidad de Valor Real\"\n },\n {\n \"name\": \"CRC\",\n \"description\": \"Costa Rican colon\"\n },\n {\n \"name\": \"CUC\",\n \"description\": \"Cuban convertible peso\"\n },\n {\n \"name\": \"CUP\",\n \"description\": \"Cuban peso\"\n },\n {\n \"name\": \"CVE\",\n \"description\": \"Cape Verdean escudo\"\n },\n {\n \"name\": \"CZK\",\n \"description\": \"Czech koruna\"\n },\n {\n \"name\": \"DJF\",\n \"description\": \"Djiboutian franc\"\n },\n {\n \"name\": \"DKK\",\n \"description\": \"Danish krone\"\n },\n {\n \"name\": \"DOP\",\n \"description\": \"Dominican peso\"\n },\n {\n \"name\": \"DZD\",\n \"description\": \"Algerian dinar\"\n },\n {\n \"name\": \"EGP\",\n \"description\": \"Egyptian pound\"\n },\n {\n \"name\": \"ERN\",\n \"description\": \"Eritrean nakfa\"\n },\n {\n \"name\": \"ETB\",\n \"description\": \"Ethiopian birr\"\n },\n {\n \"name\": \"EUR\",\n \"description\": \"Euro\"\n },\n {\n \"name\": \"FJD\",\n \"description\": \"Fiji dollar\"\n },\n {\n \"name\": \"FKP\",\n \"description\": \"Falkland Islands pound\"\n },\n {\n \"name\": \"GBP\",\n \"description\": \"Pound sterling\"\n },\n {\n \"name\": \"GEL\",\n \"description\": \"Georgian lari\"\n },\n {\n \"name\": \"GHS\",\n \"description\": \"Ghanaian cedi\"\n },\n {\n \"name\": \"GIP\",\n \"description\": \"Gibraltar pound\"\n },\n {\n \"name\": \"GMD\",\n \"description\": \"Gambian dalasi\"\n },\n {\n \"name\": \"GNF\",\n \"description\": \"Guinean franc\"\n },\n {\n \"name\": \"GTQ\",\n \"description\": \"Guatemalan quetzal\"\n },\n {\n \"name\": \"GYD\",\n \"description\": \"Guyanese dollar\"\n },\n {\n \"name\": \"HKD\",\n \"description\": \"Hong Kong dollar\"\n },\n {\n \"name\": \"HNL\",\n \"description\": \"Honduran lempira\"\n },\n {\n \"name\": \"HRK\",\n \"description\": \"Croatian kuna\"\n },\n {\n \"name\": \"HTG\",\n \"description\": \"Haitian gourde\"\n },\n {\n \"name\": \"HUF\",\n \"description\": \"Hungarian forint\"\n },\n {\n \"name\": \"IDR\",\n \"description\": \"Indonesian rupiah\"\n },\n {\n \"name\": \"ILS\",\n \"description\": \"Israeli new shekel\"\n },\n {\n \"name\": \"INR\",\n \"description\": \"Indian rupee\"\n },\n {\n \"name\": \"IQD\",\n \"description\": \"Iraqi dinar\"\n },\n {\n \"name\": \"IRR\",\n \"description\": \"Iranian rial\"\n },\n {\n \"name\": \"ISK\",\n \"description\": \"Icelandic kr\\u00f3na\"\n },\n {\n \"name\": \"JMD\",\n \"description\": \"Jamaican dollar\"\n },\n {\n \"name\": \"JOD\",\n \"description\": \"Jordanian dinar\"\n },\n {\n \"name\": \"JPY\",\n \"description\": \"Japanese yen\"\n },\n {\n \"name\": \"KES\",\n \"description\": \"Kenyan shilling\"\n },\n {\n \"name\": \"KGS\",\n \"description\": \"Kyrgyzstani som\"\n },\n {\n \"name\": \"KHR\",\n \"description\": \"Cambodian riel\"\n },\n {\n \"name\": \"KMF\",\n \"description\": \"Comoro franc\"\n },\n {\n \"name\": \"KPW\",\n \"description\": \"North Korean won\"\n },\n {\n \"name\": \"KRW\",\n \"description\": \"South Korean won\"\n },\n {\n \"name\": \"KWD\",\n \"description\": \"Kuwaiti dinar\"\n },\n {\n \"name\": \"KYD\",\n \"description\": \"Cayman Islands dollar\"\n },\n {\n \"name\": \"KZT\",\n \"description\": \"Kazakhstani tenge\"\n },\n {\n \"name\": \"LAK\",\n \"description\": \"Lao kip\"\n },\n {\n \"name\": \"LBP\",\n \"description\": \"Lebanese pound\"\n },\n {\n \"name\": \"LKR\",\n \"description\": \"Sri Lankan rupee\"\n },\n {\n \"name\": \"LRD\",\n \"description\": \"Liberian dollar\"\n },\n {\n \"name\": \"LSL\",\n \"description\": \"Lesotho loti\"\n },\n {\n \"name\": \"LTL\",\n \"description\": \"Lithuanian litas\"\n },\n {\n \"name\": \"LVL\",\n \"description\": \"Latvian lats\"\n },\n {\n \"name\": \"LYD\",\n \"description\": \"Libyan dinar\"\n },\n {\n \"name\": \"MAD\",\n \"description\": \"Moroccan dirham\"\n },\n {\n \"name\": \"MDL\",\n \"description\": \"Moldovan leu\"\n },\n {\n \"name\": \"MGA\",\n \"description\": \"Malagasy ariary\"\n },\n {\n \"name\": \"MKD\",\n \"description\": \"Macedonian denar\"\n },\n {\n \"name\": \"MMK\",\n \"description\": \"Myanmar kyat\"\n },\n {\n \"name\": \"MNT\",\n \"description\": \"Mongolian t\\u00f6gr\\u00f6g\"\n },\n {\n \"name\": \"MOP\",\n \"description\": \"Macanese pataca\"\n },\n {\n \"name\": \"MRO\",\n \"description\": \"Mauritanian ouguiya\"\n },\n {\n \"name\": \"MUR\",\n \"description\": \"Mauritian rupee\"\n },\n {\n \"name\": \"MVR\",\n \"description\": \"Maldivian rufiyaa\"\n },\n {\n \"name\": \"MWK\",\n \"description\": \"Malawian kwacha\"\n },\n {\n \"name\": \"MXN\",\n \"description\": \"Mexican peso\"\n },\n {\n \"name\": \"MXV\",\n \"description\": \"Mexican Unidad de Inversion\"\n },\n {\n \"name\": \"MYR\",\n \"description\": \"Malaysian ringgit\"\n },\n {\n \"name\": \"MZN\",\n \"description\": \"Mozambican metical\"\n },\n {\n \"name\": \"NAD\",\n \"description\": \"Namibian dollar\"\n },\n {\n \"name\": \"NGN\",\n \"description\": \"Nigerian naira\"\n },\n {\n \"name\": \"NIO\",\n \"description\": \"Nicaraguan c\\u00f3rdoba\"\n },\n {\n \"name\": \"NOK\",\n \"description\": \"Norwegian krone\"\n },\n {\n \"name\": \"NPR\",\n \"description\": \"Nepalese rupee\"\n },\n {\n \"name\": \"NZD\",\n \"description\": \"New Zealand dollar\"\n },\n {\n \"name\": \"OMR\",\n \"description\": \"Omani rial\"\n },\n {\n \"name\": \"PAB\",\n \"description\": \"Panamanian balboa\"\n },\n {\n \"name\": \"PEN\",\n \"description\": \"Peruvian sol\"\n },\n {\n \"name\": \"PGK\",\n \"description\": \"Papua New Guinean kina\"\n },\n {\n \"name\": \"PHP\",\n \"description\": \"Philippine peso\"\n },\n {\n \"name\": \"PKR\",\n \"description\": \"Pakistani rupee\"\n },\n {\n \"name\": \"PLN\",\n \"description\": \"Polish z\\u0142oty\"\n },\n {\n \"name\": \"PYG\",\n \"description\": \"Paraguayan guaran\\u00ed\"\n },\n {\n \"name\": \"QAR\",\n \"description\": \"Qatari riyal\"\n },\n {\n \"name\": \"RON\",\n \"description\": \"Romanian leu\"\n },\n {\n \"name\": \"RSD\",\n \"description\": \"Serbian dinar\"\n },\n {\n \"name\": \"RUB\",\n \"description\": \"Russian ruble\"\n },\n {\n \"name\": \"RWF\",\n \"description\": \"Rwandan franc\"\n },\n {\n \"name\": \"SAR\",\n \"description\": \"Saudi riyal\"\n },\n {\n \"name\": \"SBD\",\n \"description\": \"Solomon Islands dollar\"\n },\n {\n \"name\": \"SCR\",\n \"description\": \"Seychelles rupee\"\n },\n {\n \"name\": \"SDG\",\n \"description\": \"Sudanese pound\"\n },\n {\n \"name\": \"SEK\",\n \"description\": \"Swedish krona\"\n },\n {\n \"name\": \"SGD\",\n \"description\": \"Singapore dollar\"\n },\n {\n \"name\": \"SHP\",\n \"description\": \"Saint Helena pound\"\n },\n {\n \"name\": \"SLL\",\n \"description\": \"Sierra Leonean first leone\"\n },\n {\n \"name\": \"SLE\",\n \"description\": \"Sierra Leonean second leone\"\n },\n {\n \"name\": \"SOS\",\n \"description\": \"Somali shilling\"\n },\n {\n \"name\": \"SRD\",\n \"description\": \"Surinamese dollar\"\n },\n {\n \"name\": \"SSP\",\n \"description\": \"South Sudanese pound\"\n },\n {\n \"name\": \"STD\",\n \"description\": \"S\\u00e3o Tom\\u00e9 and Pr\\u00edncipe dobra\"\n },\n {\n \"name\": \"SVC\",\n \"description\": \"Salvadoran col\\u00f3n\"\n },\n {\n \"name\": \"SYP\",\n \"description\": \"Syrian pound\"\n },\n {\n \"name\": \"SZL\",\n \"description\": \"Swazi lilangeni\"\n },\n {\n \"name\": \"THB\",\n \"description\": \"Thai baht\"\n },\n {\n \"name\": \"TJS\",\n \"description\": \"Tajikstani somoni\"\n },\n {\n \"name\": \"TMT\",\n \"description\": \"Turkmenistan manat\"\n },\n {\n \"name\": \"TND\",\n \"description\": \"Tunisian dinar\"\n },\n {\n \"name\": \"TOP\",\n \"description\": \"Tongan pa'anga\"\n },\n {\n \"name\": \"TRY\",\n \"description\": \"Turkish lira\"\n },\n {\n \"name\": \"TTD\",\n \"description\": \"Trinidad and Tobago dollar\"\n },\n {\n \"name\": \"TWD\",\n \"description\": \"New Taiwan dollar\"\n },\n {\n \"name\": \"TZS\",\n \"description\": \"Tanzanian shilling\"\n },\n {\n \"name\": \"UAH\",\n \"description\": \"Ukrainian hryvnia\"\n },\n {\n \"name\": \"UGX\",\n \"description\": \"Ugandan shilling\"\n },\n {\n \"name\": \"USD\",\n \"description\": \"United States dollar\"\n },\n {\n \"name\": \"USN\",\n \"description\": \"United States dollar (next day)\"\n },\n {\n \"name\": \"USS\",\n \"description\": \"United States dollar (same day)\"\n },\n {\n \"name\": \"UYI\",\n \"description\": \"Uruguay Peso en Unidedades Indexadas\"\n },\n {\n \"name\": \"UYU\",\n \"description\": \"Uruguyan peso\"\n },\n {\n \"name\": \"UZS\",\n \"description\": \"Uzbekistan som\"\n },\n {\n \"name\": \"VEF\",\n \"description\": \"Venezuelan bol\\u00edvar soberano\"\n },\n {\n \"name\": \"VND\",\n \"description\": \"Vietnamese \\u0111\\u1ed3ng\"\n },\n {\n \"name\": \"VUV\",\n \"description\": \"Vanuatu vatu\"\n },\n {\n \"name\": \"WST\",\n \"description\": \"Samoan tala\"\n },\n {\n \"name\": \"XAF\",\n \"description\": \"CFA franc BEAC\"\n },\n {\n \"name\": \"XAG\",\n \"description\": \"Silver\"\n },\n {\n \"name\": \"XAU\",\n \"description\": \"Gold\"\n },\n {\n \"name\": \"XBA\",\n \"description\": \"European Composite Unit\"\n },\n {\n \"name\": \"XBB\",\n \"description\": \"European Monetary Unit\"\n },\n {\n \"name\": \"XBC\",\n \"description\": \"European Unit of Account 9\"\n },\n {\n \"name\": \"XBD\",\n \"description\": \"European Unit of Account 17\"\n },\n {\n \"name\": \"XCD\",\n \"description\": \"East Caribbean dollar\"\n },\n {\n \"name\": \"XDR\",\n \"description\": \"Special drawing rights (International Monetary Fund)\"\n },\n {\n \"name\": \"XOF\",\n \"description\": \"CFA franc BCEAO\"\n },\n {\n \"name\": \"XPD\",\n \"description\": \"Palladium\"\n },\n {\n \"name\": \"XPF\",\n \"description\": \"CFP franc\"\n },\n {\n \"name\": \"XPT\",\n \"description\": \"Platinum\"\n },\n {\n \"name\": \"XTS\",\n \"description\": \"Code reserved for testing\"\n },\n {\n \"name\": \"XXX\",\n \"description\": \"No currency\"\n },\n {\n \"name\": \"YER\",\n \"description\": \"Yemeni rial\"\n },\n {\n \"name\": \"ZAR\",\n \"description\": \"South African rand\"\n },\n {\n \"name\": \"ZMK\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"ZMW\",\n \"description\": \"Zambian kwacha\"\n },\n {\n \"name\": \"BTC\",\n \"description\": \"Bitcoin\"\n },\n {\n \"name\": \"XUS\",\n \"description\": \"USD Coin\"\n }\n ],\n \"description\": \"Indicates the associated currency for an amount of money. Values correspond\\nto [ISO 4217](https://wikipedia.org/wiki/ISO_4217).\",\n \"x-release-status\": \"PUBLIC\"\n }\n }\n }\n }\n },\n \"wallet_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about `WALLET` type payments. Contains only non-confidential information.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"status\": {\n \"type\": \"string\",\n \"description\": \"The status of the `WALLET` payment. The status can be `AUTHORIZED`, `CAPTURED`, `VOIDED`, or\\n`FAILED`.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"brand\": {\n \"type\": \"string\",\n \"description\": \"The brand used for the `WALLET` payment. The brand can be `CASH_APP`, `PAYPAY`, `ALIPAY`,\\n`RAKUTEN_PAY`, `AU_PAY`, `D_BARAI`, `MERPAY`, `WECHAT_PAY` or `UNKNOWN`.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"cash_app_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about `WALLET` type payments with the `brand` of `CASH_APP`.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"buyer_full_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the Cash App account holder.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"buyer_country_code\": {\n \"type\": \"string\",\n \"description\": \"The country of the Cash App account holder, in ISO 3166-1-alpha-2 format.\\n\\nFor possible values, see [Country](entity:Country).\",\n \"minLength\": 2,\n \"maxLength\": 2,\n \"nullable\": true\n },\n \"buyer_cashtag\": {\n \"type\": \"string\",\n \"description\": \"$Cashtag of the Cash App account holder.\",\n \"minLength\": 1,\n \"maxLength\": 21,\n \"readOnly\": true\n }\n }\n }\n }\n },\n \"buy_now_pay_later_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about a Buy Now Pay Later payment type.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"brand\": {\n \"type\": \"string\",\n \"description\": \"The brand used for the Buy Now Pay Later payment.\\nThe brand can be `AFTERPAY`, `CLEARPAY` or `UNKNOWN`.\",\n \"maxLength\": 50,\n \"nullable\": true\n },\n \"afterpay_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about Afterpay payments.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"email_address\": {\n \"type\": \"string\",\n \"description\": \"Email address on the buyer's Afterpay account.\",\n \"maxLength\": 255,\n \"nullable\": true\n }\n }\n },\n \"clearpay_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about Clearpay payments.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"email_address\": {\n \"type\": \"string\",\n \"description\": \"Email address on the buyer's Clearpay account.\",\n \"maxLength\": 255,\n \"nullable\": true\n }\n }\n }\n }\n },\n \"square_account_details\": {\n \"type\": \"object\",\n \"description\": \"Additional details about Square Account payments.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"payment_source_token\": {\n \"type\": \"string\",\n \"description\": \"Unique identifier for the payment source used for this payment.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"errors\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"description\": \"Represents an error encountered during a request to the Connect API.\\n\\nSee [Handling errors](https://developer.squareup.com/docs/build-basics/handling-errors) for more information.\",\n \"x-release-status\": \"PUBLIC\",\n \"required\": [\n \"category\",\n \"code\"\n ],\n \"properties\": {\n \"category\": {\n \"type\": \"string\",\n \"enum\": [\n \"API_ERROR\",\n \"AUTHENTICATION_ERROR\",\n \"INVALID_REQUEST_ERROR\",\n \"RATE_LIMIT_ERROR\",\n \"PAYMENT_METHOD_ERROR\",\n \"REFUND_ERROR\",\n \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"EXTERNAL_VENDOR_ERROR\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"API_ERROR\",\n \"description\": \"An error occurred with the Connect API itself.\"\n },\n {\n \"name\": \"AUTHENTICATION_ERROR\",\n \"description\": \"An authentication error occurred. Most commonly, the request had\\na missing, malformed, or otherwise invalid `Authorization` header.\"\n },\n {\n \"name\": \"INVALID_REQUEST_ERROR\",\n \"description\": \"The request was invalid. Most commonly, a required parameter was\\nmissing, or a provided parameter had an invalid value.\"\n },\n {\n \"name\": \"RATE_LIMIT_ERROR\",\n \"description\": \"Your application reached the Square API rate limit. You might receive this error if your application sends a high number of requests\\nto Square APIs in a short period of time.\\n\\nYour application should monitor responses for `429 RATE_LIMITED` errors and use a retry mechanism with an [exponential backoff](https://en.wikipedia.org/wiki/Exponential_backoff)\\nschedule to resend the requests at an increasingly slower rate. It is also a good practice to use a randomized delay (jitter) in your retry schedule.\"\n },\n {\n \"name\": \"PAYMENT_METHOD_ERROR\",\n \"description\": \"An error occurred while processing a payment method. Most commonly,\\nthe details of the payment method were invalid (such as a card's CVV\\nor expiration date).\"\n },\n {\n \"name\": \"REFUND_ERROR\",\n \"description\": \"An error occurred while attempting to process a refund.\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_ERROR\",\n \"description\": \"An error occurred when checking a merchant subscription status\"\n },\n {\n \"name\": \"EXTERNAL_VENDOR_ERROR\",\n \"description\": \"An error that is returned from an external vendor's API\"\n }\n ],\n \"description\": \"Indicates which high-level category of error has occurred during a\\nrequest to the Connect API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"code\": {\n \"type\": \"string\",\n \"enum\": [\n \"INTERNAL_SERVER_ERROR\",\n \"UNAUTHORIZED\",\n \"ACCESS_TOKEN_EXPIRED\",\n \"ACCESS_TOKEN_REVOKED\",\n \"CLIENT_DISABLED\",\n \"FORBIDDEN\",\n \"INSUFFICIENT_SCOPES\",\n \"APPLICATION_DISABLED\",\n \"V1_APPLICATION\",\n \"V1_ACCESS_TOKEN\",\n \"CARD_PROCESSING_NOT_ENABLED\",\n \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"BAD_REQUEST\",\n \"MISSING_REQUIRED_PARAMETER\",\n \"INCORRECT_TYPE\",\n \"INVALID_TIME\",\n \"INVALID_TIME_RANGE\",\n \"INVALID_VALUE\",\n \"INVALID_CURSOR\",\n \"UNKNOWN_QUERY_PARAMETER\",\n \"CONFLICTING_PARAMETERS\",\n \"EXPECTED_JSON_BODY\",\n \"INVALID_SORT_ORDER\",\n \"VALUE_REGEX_MISMATCH\",\n \"VALUE_TOO_SHORT\",\n \"VALUE_TOO_LONG\",\n \"VALUE_TOO_LOW\",\n \"VALUE_TOO_HIGH\",\n \"VALUE_EMPTY\",\n \"ARRAY_LENGTH_TOO_LONG\",\n \"ARRAY_LENGTH_TOO_SHORT\",\n \"ARRAY_EMPTY\",\n \"EXPECTED_BOOLEAN\",\n \"EXPECTED_INTEGER\",\n \"EXPECTED_FLOAT\",\n \"EXPECTED_STRING\",\n \"EXPECTED_OBJECT\",\n \"EXPECTED_ARRAY\",\n \"EXPECTED_MAP\",\n \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"INVALID_ARRAY_VALUE\",\n \"INVALID_ENUM_VALUE\",\n \"INVALID_CONTENT_TYPE\",\n \"INVALID_FORM_VALUE\",\n \"CUSTOMER_NOT_FOUND\",\n \"ONE_INSTRUMENT_EXPECTED\",\n \"NO_FIELDS_SET\",\n \"TOO_MANY_MAP_ENTRIES\",\n \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"MAP_KEY_LENGTH_TOO_LONG\",\n \"CUSTOMER_MISSING_NAME\",\n \"CUSTOMER_MISSING_EMAIL\",\n \"INVALID_PAUSE_LENGTH\",\n \"INVALID_DATE\",\n \"UNSUPPORTED_COUNTRY\",\n \"UNSUPPORTED_CURRENCY\",\n \"APPLE_TTP_PIN_TOKEN\",\n \"CARD_EXPIRED\",\n \"INVALID_EXPIRATION\",\n \"INVALID_EXPIRATION_YEAR\",\n \"INVALID_EXPIRATION_DATE\",\n \"UNSUPPORTED_CARD_BRAND\",\n \"UNSUPPORTED_ENTRY_METHOD\",\n \"INVALID_ENCRYPTED_CARD\",\n \"INVALID_CARD\",\n \"PAYMENT_AMOUNT_MISMATCH\",\n \"GENERIC_DECLINE\",\n \"CVV_FAILURE\",\n \"ADDRESS_VERIFICATION_FAILURE\",\n \"INVALID_ACCOUNT\",\n \"CURRENCY_MISMATCH\",\n \"INSUFFICIENT_FUNDS\",\n \"INSUFFICIENT_PERMISSIONS\",\n \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"INVALID_LOCATION\",\n \"TRANSACTION_LIMIT\",\n \"VOICE_FAILURE\",\n \"PAN_FAILURE\",\n \"EXPIRATION_FAILURE\",\n \"CARD_NOT_SUPPORTED\",\n \"READER_DECLINED\",\n \"INVALID_PIN\",\n \"MISSING_PIN\",\n \"MISSING_ACCOUNT_TYPE\",\n \"INVALID_POSTAL_CODE\",\n \"INVALID_FEES\",\n \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"PAYMENT_LIMIT_EXCEEDED\",\n \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"ACCOUNT_UNUSABLE\",\n \"BUYER_REFUSED_PAYMENT\",\n \"DELAYED_TRANSACTION_EXPIRED\",\n \"DELAYED_TRANSACTION_CANCELED\",\n \"DELAYED_TRANSACTION_CAPTURED\",\n \"DELAYED_TRANSACTION_FAILED\",\n \"CARD_TOKEN_EXPIRED\",\n \"CARD_TOKEN_USED\",\n \"AMOUNT_TOO_HIGH\",\n \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"REFUND_AMOUNT_INVALID\",\n \"REFUND_ALREADY_PENDING\",\n \"PAYMENT_NOT_REFUNDABLE\",\n \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"REFUND_DECLINED\",\n \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"INVALID_CARD_DATA\",\n \"SOURCE_USED\",\n \"SOURCE_EXPIRED\",\n \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"LOCATION_MISMATCH\",\n \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"IDEMPOTENCY_KEY_REUSED\",\n \"UNEXPECTED_VALUE\",\n \"SANDBOX_NOT_SUPPORTED\",\n \"INVALID_EMAIL_ADDRESS\",\n \"INVALID_PHONE_NUMBER\",\n \"CHECKOUT_EXPIRED\",\n \"BAD_CERTIFICATE\",\n \"INVALID_SQUARE_VERSION_FORMAT\",\n \"API_VERSION_INCOMPATIBLE\",\n \"CARD_PRESENCE_REQUIRED\",\n \"UNSUPPORTED_SOURCE_TYPE\",\n \"CARD_MISMATCH\",\n \"PLAID_ERROR\",\n \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"PLAID_ERROR_RATE_LIMIT\",\n \"CARD_DECLINED\",\n \"VERIFY_CVV_FAILURE\",\n \"VERIFY_AVS_FAILURE\",\n \"CARD_DECLINED_CALL_ISSUER\",\n \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"BAD_EXPIRATION\",\n \"CHIP_INSERTION_REQUIRED\",\n \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"RESERVATION_DECLINED\",\n \"UNKNOWN_BODY_PARAMETER\",\n \"NOT_FOUND\",\n \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"METHOD_NOT_ALLOWED\",\n \"NOT_ACCEPTABLE\",\n \"REQUEST_TIMEOUT\",\n \"CONFLICT\",\n \"GONE\",\n \"REQUEST_ENTITY_TOO_LARGE\",\n \"UNSUPPORTED_MEDIA_TYPE\",\n \"UNPROCESSABLE_ENTITY\",\n \"RATE_LIMITED\",\n \"NOT_IMPLEMENTED\",\n \"BAD_GATEWAY\",\n \"SERVICE_UNAVAILABLE\",\n \"TEMPORARY_ERROR\",\n \"GATEWAY_TIMEOUT\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"INTERNAL_SERVER_ERROR\",\n \"description\": \"A general server error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"UNAUTHORIZED\",\n \"description\": \"A general authorization error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_EXPIRED\",\n \"description\": \"The provided access token has expired.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"ACCESS_TOKEN_REVOKED\",\n \"description\": \"The provided access token has been revoked.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"CLIENT_DISABLED\",\n \"description\": \"The provided client has been disabled.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"FORBIDDEN\",\n \"description\": \"A general access error occurred.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_SCOPES\",\n \"description\": \"The provided access token does not have permission\\nto execute the requested action.\",\n \"error-category\": \"AUTHENTICATION_ERROR\"\n },\n {\n \"name\": \"APPLICATION_DISABLED\",\n \"description\": \"The calling application was disabled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_APPLICATION\",\n \"description\": \"The calling application was created prior to\\n2016-03-30 and is not compatible with v2 Square API calls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"V1_ACCESS_TOKEN\",\n \"description\": \"The calling application is using an access token\\ncreated prior to 2016-03-30 and is not compatible with v2 Square API\\ncalls.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PROCESSING_NOT_ENABLED\",\n \"description\": \"The location provided in the API call is not\\nenabled for credit card processing.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MERCHANT_SUBSCRIPTION_NOT_FOUND\",\n \"description\": \"A required subscription was not found for the merchant\",\n \"error-category\": \"MERCHANT_SUBSCRIPTION_ERROR\"\n },\n {\n \"name\": \"BAD_REQUEST\",\n \"description\": \"A general error occurred with the request.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MISSING_REQUIRED_PARAMETER\",\n \"description\": \"The request is missing a required path, query, or\\nbody parameter.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INCORRECT_TYPE\",\n \"description\": \"The value provided in the request is the wrong\\ntype. For example, a string instead of an integer.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME\",\n \"description\": \"Formatting for the provided time value is\\nincorrect.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_TIME_RANGE\",\n \"description\": \"The time range provided in the request is invalid.\\nFor example, the end time is before the start time.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_VALUE\",\n \"description\": \"The provided value is invalid. For example,\\nincluding `%` in a phone number.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CURSOR\",\n \"description\": \"The pagination cursor included in the request is\\ninvalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_QUERY_PARAMETER\",\n \"description\": \"The query parameters provided is invalid for the\\nrequested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICTING_PARAMETERS\",\n \"description\": \"One or more of the request parameters conflict with\\neach other.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_JSON_BODY\",\n \"description\": \"The request body is not a JSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SORT_ORDER\",\n \"description\": \"The provided sort order is not a valid key.\\nCurrently, sort order must be `ASC` or `DESC`.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_REGEX_MISMATCH\",\n \"description\": \"The provided value does not match an expected\\nregular expression.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_SHORT\",\n \"description\": \"The provided string value is shorter than the\\nminimum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LONG\",\n \"description\": \"The provided string value is longer than the\\nmaximum length allowed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_LOW\",\n \"description\": \"The provided value is less than the supported\\nminimum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_TOO_HIGH\",\n \"description\": \"The provided value is greater than the supported\\nmaximum.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"VALUE_EMPTY\",\n \"description\": \"The provided value has a default (empty) value\\nsuch as a blank string.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_LONG\",\n \"description\": \"The provided array has too many elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_LENGTH_TOO_SHORT\",\n \"description\": \"The provided array has too few elements.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ARRAY_EMPTY\",\n \"description\": \"The provided array is empty.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BOOLEAN\",\n \"description\": \"The endpoint expected the provided value to be a\\nboolean.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_INTEGER\",\n \"description\": \"The endpoint expected the provided value to be an\\ninteger.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_FLOAT\",\n \"description\": \"The endpoint expected the provided value to be a\\nfloat.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_STRING\",\n \"description\": \"The endpoint expected the provided value to be a\\nstring.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_OBJECT\",\n \"description\": \"The endpoint expected the provided value to be a\\nJSON object.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray or list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_MAP\",\n \"description\": \"The endpoint expected the provided value to be a\\nmap or associative array.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"EXPECTED_BASE64_ENCODED_BYTE_ARRAY\",\n \"description\": \"The endpoint expected the provided value to be an\\narray encoded in base64.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ARRAY_VALUE\",\n \"description\": \"One or more objects in the array does not match the\\narray type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_ENUM_VALUE\",\n \"description\": \"The provided static string is not valid for the\\nfield.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_CONTENT_TYPE\",\n \"description\": \"Invalid content type header.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_FORM_VALUE\",\n \"description\": \"Only relevant for applications created prior to\\n2016-03-30. Indicates there was an error while parsing form values.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_NOT_FOUND\",\n \"description\": \"The provided customer id can't be found in the merchant's customers list.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ONE_INSTRUMENT_EXPECTED\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NO_FIELDS_SET\",\n \"description\": \"A general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"TOO_MANY_MAP_ENTRIES\",\n \"description\": \"Too many entries in the map field.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_SHORT\",\n \"description\": \"The length of one of the provided keys in the map is too short.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"MAP_KEY_LENGTH_TOO_LONG\",\n \"description\": \"The length of one of the provided keys in the map is too long.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_NAME\",\n \"description\": \"The provided customer does not have a recorded name.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CUSTOMER_MISSING_EMAIL\",\n \"description\": \"The provided customer does not have a recorded email.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PAUSE_LENGTH\",\n \"description\": \"The subscription cannot be paused longer than the duration of the current phase.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_DATE\",\n \"description\": \"The subscription cannot be paused/resumed on the given date.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_COUNTRY\",\n \"description\": \"The API request references an unsupported country.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CURRENCY\",\n \"description\": \"The API request references an unsupported currency.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_TTP_PIN_TOKEN\",\n \"description\": \"The payment was declined by the card issuer during an Apple Tap to Pay (TTP)\\ntransaction with a request for the card's PIN. This code will be returned alongside\\n`CARD_DECLINED_VERIFICATION_REQUIRED` as a supplemental error, and will include an\\nissuer-provided token in the `details` field that is needed to initiate the PIN\\ncollection flow on the iOS device.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_EXPIRED\",\n \"description\": \"The card issuer declined the request because the card is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit indicates a date in the past.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_YEAR\",\n \"description\": \"The expiration year for the payment card is invalid. For example,\\nit indicates a year in the past or contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EXPIRATION_DATE\",\n \"description\": \"The expiration date for the payment card is invalid. For example,\\nit contains invalid characters.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_CARD_BRAND\",\n \"description\": \"The credit card provided is not from a supported issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_ENTRY_METHOD\",\n \"description\": \"The entry method for the credit card (swipe, dip, tap) is not supported.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ENCRYPTED_CARD\",\n \"description\": \"The encrypted card information is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD\",\n \"description\": \"The credit card cannot be validated based on the provided details.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_AMOUNT_MISMATCH\",\n \"description\": \"The payment was declined because there was a payment amount mismatch.\\nThe money amount Square was expecting does not match the amount provided.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GENERIC_DECLINE\",\n \"description\": \"Square received a decline without any additional information.\\nIf the payment information seems correct, the buyer can contact their\\nissuer to ask for more information.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CVV_FAILURE\",\n \"description\": \"The card issuer declined the request because the CVV value is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ADDRESS_VERIFICATION_FAILURE\",\n \"description\": \"The card issuer declined the request because the postal code is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_ACCOUNT\",\n \"description\": \"The issuer was not able to locate the account on record.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CURRENCY_MISMATCH\",\n \"description\": \"The currency associated with the payment is not valid for the provided\\nfunding source. For example, a gift card funded in USD cannot be used to process\\npayments in GBP.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_FUNDS\",\n \"description\": \"The funding source has insufficient funds to cover the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The Square account does not have the permissions to accept\\nthis payment. For example, Square may limit which merchants are\\nallowed to receive gift card payments.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARDHOLDER_INSUFFICIENT_PERMISSIONS\",\n \"description\": \"The card issuer has declined the transaction due to restrictions on where the card can be used.\\nFor example, a gift card is limited to a single merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_LOCATION\",\n \"description\": \"The Square account cannot take payments in the specified region.\\nA Square account can take payments only from the region where the account was created.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"TRANSACTION_LIMIT\",\n \"description\": \"The card issuer has determined the payment amount is either too high or too low.\\nThe API returns the error code mostly for credit cards (for example, the card reached\\nthe credit limit). However, sometimes the issuer bank can indicate the error for debit\\nor prepaid cards (for example, card has insufficient funds).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VOICE_FAILURE\",\n \"description\": \"The card issuer declined the request because the issuer requires voice authorization from the cardholder. The seller should ask the customer to contact the card issuing bank to authorize the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAN_FAILURE\",\n \"description\": \"The specified card number is invalid. For example, it is of\\nincorrect length or is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"EXPIRATION_FAILURE\",\n \"description\": \"The card expiration date is either invalid or indicates that the\\ncard is expired.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_NOT_SUPPORTED\",\n \"description\": \"The card is not supported either in the geographic region or by\\nthe [merchant category code](https://developer.squareup.com/docs/locations-api#initialize-a-merchant-category-code) (MCC).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"READER_DECLINED\",\n \"description\": \"The Square Card Reader declined the payment for an unknown reason.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_PIN\",\n \"description\": \"The card issuer declined the request because the PIN is invalid.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_PIN\",\n \"description\": \"The payment is missing a required PIN.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MISSING_ACCOUNT_TYPE\",\n \"description\": \"The payment is missing a required ACCOUNT_TYPE parameter.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_POSTAL_CODE\",\n \"description\": \"The postal code is incorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"INVALID_FEES\",\n \"description\": \"The app_fee_money on a payment is too high.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"MANUALLY_ENTERED_PAYMENT_NOT_SUPPORTED\",\n \"description\": \"The card must be swiped, tapped, or dipped. Payments attempted by manually entering the card number are declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"PAYMENT_LIMIT_EXCEEDED\",\n \"description\": \"Square declined the request because the payment amount exceeded the processing limit for this merchant.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GIFT_CARD_AVAILABLE_AMOUNT\",\n \"description\": \"When a Gift Card is a payment source, you can allow taking a partial payment\\nby adding the `accept_partial_authorization` parameter in the request.\\nHowever, taking such a partial payment does not work if your request also includes\\n`tip_money`, `app_fee_money`, or both. Square declines such payments and returns\\nthe `GIFT_CARD_AVAILABLE_AMOUNT` error.\\nFor more information, see\\n[CreatePayment errors (additional information)](https://developer.squareup.com/docs/payments-api/error-codes#createpayment-errors-additional-information).\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ACCOUNT_UNUSABLE\",\n \"description\": \"The account provided cannot carry out transactions.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BUYER_REFUSED_PAYMENT\",\n \"description\": \"Bank account rejected or was not authorized for the payment.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_EXPIRED\",\n \"description\": \"The application tried to update a delayed-capture payment that has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CANCELED\",\n \"description\": \"The application tried to cancel a delayed-capture payment that was already cancelled.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_CAPTURED\",\n \"description\": \"The application tried to capture a delayed-capture payment that was already captured.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"DELAYED_TRANSACTION_FAILED\",\n \"description\": \"The application tried to update a delayed-capture payment that failed.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_EXPIRED\",\n \"description\": \"The provided card token (nonce) has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_TOKEN_USED\",\n \"description\": \"The provided card token (nonce) was already used to process the payment or refund.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"AMOUNT_TOO_HIGH\",\n \"description\": \"The requested payment amount is too high for the provided payment source.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_INSTRUMENT_TYPE\",\n \"description\": \"The API request references an unsupported instrument type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REFUND_AMOUNT_INVALID\",\n \"description\": \"The requested refund amount exceeds the amount available to refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ALREADY_PENDING\",\n \"description\": \"The payment already has a pending refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE\",\n \"description\": \"The payment is not refundable. For example, the payment is too old to be refunded.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PAYMENT_NOT_REFUNDABLE_DUE_TO_DISPUTE\",\n \"description\": \"The payment is not refundable because it has been disputed.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_ERROR_PAYMENT_NEEDS_COMPLETION\",\n \"description\": \"The payment is not refundable because the payment is approved and needs to be completed first before the refund is issued.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"REFUND_DECLINED\",\n \"description\": \"Request failed - The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INSUFFICIENT_PERMISSIONS_FOR_REFUND\",\n \"description\": \"The Square account does not have the permissions to process this refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"INVALID_CARD_DATA\",\n \"description\": \"Generic error - the provided card data is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_USED\",\n \"description\": \"The provided source id was already used to create a card.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SOURCE_EXPIRED\",\n \"description\": \"The provided source id has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_LOYALTY_REWARD_TIER\",\n \"description\": \"The referenced loyalty program reward tier is not supported.\\nThis could happen if the reward tier created in a first party\\napplication is incompatible with the Loyalty API.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"LOCATION_MISMATCH\",\n \"description\": \"Generic error - the given location does not matching what is expected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"ORDER_UNPAID_NOT_RETURNABLE\",\n \"description\": \"The order attempting to be returned is not yet paid and cannot be returned.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"IDEMPOTENCY_KEY_REUSED\",\n \"description\": \"The provided idempotency key has already been used.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNEXPECTED_VALUE\",\n \"description\": \"General error - the value provided was unexpected.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"SANDBOX_NOT_SUPPORTED\",\n \"description\": \"The API request is not supported in sandbox.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_EMAIL_ADDRESS\",\n \"description\": \"The provided email address is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_PHONE_NUMBER\",\n \"description\": \"The provided phone number is invalid.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CHECKOUT_EXPIRED\",\n \"description\": \"The provided checkout URL has expired.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"BAD_CERTIFICATE\",\n \"description\": \"Bad certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"INVALID_SQUARE_VERSION_FORMAT\",\n \"description\": \"The provided Square-Version is incorrectly formatted.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"API_VERSION_INCOMPATIBLE\",\n \"description\": \"The provided Square-Version is incompatible with the requested action.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_PRESENCE_REQUIRED\",\n \"description\": \"The transaction requires that a card be present.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_SOURCE_TYPE\",\n \"description\": \"The API request references an unsupported source type.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CARD_MISMATCH\",\n \"description\": \"The provided card does not match what is expected.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR\",\n \"description\": \"Generic plaid error\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_ITEM_LOGIN_REQUIRED\",\n \"description\": \"Plaid error - ITEM_LOGIN_REQUIRED\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"PLAID_ERROR_RATE_LIMIT\",\n \"description\": \"Plaid error - RATE_LIMIT\",\n \"error-category\": \"EXTERNAL_VENDOR_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED\",\n \"description\": \"The card was declined.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_CVV_FAILURE\",\n \"description\": \"The CVV could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"VERIFY_AVS_FAILURE\",\n \"description\": \"The AVS could not be verified.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_CALL_ISSUER\",\n \"description\": \"The payment card was declined with a request\\nfor the card holder to call the issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CARD_DECLINED_VERIFICATION_REQUIRED\",\n \"description\": \"The payment card was declined with a request\\nfor additional verification.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"BAD_EXPIRATION\",\n \"description\": \"The card expiration date is either missing or\\nincorrectly formatted.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"CHIP_INSERTION_REQUIRED\",\n \"description\": \"The card issuer requires that the card be read\\nusing a chip reader.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"ALLOWABLE_PIN_TRIES_EXCEEDED\",\n \"description\": \"The card has exhausted its available pin entry\\nretries set by the card issuer. Resolving the error typically requires the\\ncard holder to contact the card issuer.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"RESERVATION_DECLINED\",\n \"description\": \"The card issuer declined the refund.\",\n \"error-category\": \"REFUND_ERROR\"\n },\n {\n \"name\": \"UNKNOWN_BODY_PARAMETER\",\n \"description\": \"The body parameter is not recognized by the requested endpoint.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_FOUND\",\n \"description\": \"Not Found - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"APPLE_PAYMENT_PROCESSING_CERTIFICATE_HASH_NOT_FOUND\",\n \"description\": \"Square could not find the associated Apple Pay certificate.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"METHOD_NOT_ALLOWED\",\n \"description\": \"Method Not Allowed - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"NOT_ACCEPTABLE\",\n \"description\": \"Not Acceptable - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_TIMEOUT\",\n \"description\": \"Request Timeout - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"CONFLICT\",\n \"description\": \"Conflict - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"GONE\",\n \"description\": \"The target resource is no longer available and this\\ncondition is likely to be permanent.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"REQUEST_ENTITY_TOO_LARGE\",\n \"description\": \"Request Entity Too Large - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNSUPPORTED_MEDIA_TYPE\",\n \"description\": \"Unsupported Media Type - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"UNPROCESSABLE_ENTITY\",\n \"description\": \"Unprocessable Entity - a general error occurred.\",\n \"error-category\": \"INVALID_REQUEST_ERROR\"\n },\n {\n \"name\": \"RATE_LIMITED\",\n \"description\": \"Rate Limited - a general error occurred.\",\n \"error-category\": \"RATE_LIMIT_ERROR\"\n },\n {\n \"name\": \"NOT_IMPLEMENTED\",\n \"description\": \"Not Implemented - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"BAD_GATEWAY\",\n \"description\": \"Bad Gateway - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"SERVICE_UNAVAILABLE\",\n \"description\": \"Service Unavailable - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n },\n {\n \"name\": \"TEMPORARY_ERROR\",\n \"description\": \"A temporary internal error occurred. You can safely retry your call\\nusing the same idempotency key.\",\n \"error-category\": \"PAYMENT_METHOD_ERROR\"\n },\n {\n \"name\": \"GATEWAY_TIMEOUT\",\n \"description\": \"Gateway Timeout - a general error occurred.\",\n \"error-category\": \"API_ERROR\"\n }\n ],\n \"description\": \"Indicates the specific error that occurred during a request to a\\nSquare API.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"detail\": {\n \"type\": \"string\",\n \"description\": \"A human-readable description of the error for debugging purposes.\"\n },\n \"field\": {\n \"type\": \"string\",\n \"description\": \"The name of the field provided in the original request (if any) that\\nthe error pertains to.\"\n }\n }\n },\n \"description\": \"Information about errors encountered during the request.\",\n \"nullable\": true\n }\n }\n },\n \"location_id\": {\n \"type\": \"string\",\n \"description\": \"The ID of the location associated with the payment.\",\n \"maxLength\": 50,\n \"readOnly\": true\n },\n \"order_id\": {\n \"type\": \"string\",\n \"description\": \"The ID of the order associated with the payment.\",\n \"maxLength\": 192,\n \"readOnly\": true\n },\n \"reference_id\": {\n \"type\": \"string\",\n \"description\": \"An optional ID that associates the payment with an entity in\\nanother system.\",\n \"maxLength\": 40,\n \"readOnly\": true\n },\n \"customer_id\": {\n \"type\": \"string\",\n \"description\": \"The ID of the customer associated with the payment. If the ID is \\nnot provided in the `CreatePayment` request that was used to create the `Payment`, \\nSquare may use information in the request \\n(such as the billing and shipping address, email address, and payment source) \\nto identify a matching customer profile in the Customer Directory. \\nIf found, the profile ID is used. If a profile is not found, the \\nAPI attempts to create an \\n[instant profile](https://developer.squareup.com/docs/customers-api/what-it-does#instant-profiles). \\nIf the API cannot create an \\ninstant profile (either because the seller has disabled it or the \\nseller's region prevents creating it), this field remains unset. Note that \\nthis process is asynchronous and it may take some time before a \\ncustomer ID is added to the payment.\",\n \"maxLength\": 191,\n \"readOnly\": true\n },\n \"employee_id\": {\n \"type\": \"string\",\n \"description\": \"__Deprecated__: Use `Payment.team_member_id` instead.\\n\\nAn optional ID of the employee associated with taking the payment.\",\n \"maxLength\": 192,\n \"readOnly\": true,\n \"x-release-status\": \"DEPRECATED\"\n },\n \"team_member_id\": {\n \"type\": \"string\",\n \"description\": \"An optional ID of the [TeamMember](entity:TeamMember) associated with taking the payment.\",\n \"maxLength\": 192,\n \"nullable\": true\n },\n \"refund_ids\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"A list of `refund_id`s identifying refunds for the payment.\",\n \"readOnly\": true\n },\n \"risk_evaluation\": {\n \"type\": \"object\",\n \"description\": \"Represents fraud risk information for the associated payment.\\n\\nWhen you take a payment through Square's Payments API (using the `CreatePayment`\\nendpoint), Square evaluates it and assigns a risk level to the payment. Sellers\\ncan use this information to determine the course of action (for example,\\nprovide the goods/services or refund the payment).\",\n \"x-release-status\": \"BETA\",\n \"required\": [\n \"status\"\n ],\n \"properties\": {\n \"created_at\": {\n \"type\": \"string\",\n \"description\": \"The timestamp when payment risk was evaluated, in RFC 3339 format.\",\n \"readOnly\": true\n },\n \"risk_level\": {\n \"type\": \"string\",\n \"enum\": [\n \"PENDING\",\n \"NORMAL\",\n \"MODERATE\",\n \"HIGH\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"PENDING\",\n \"description\": \"Indicates Square is still evaluating the payment.\"\n },\n {\n \"name\": \"NORMAL\",\n \"description\": \"Indicates payment risk is within the normal range.\"\n },\n {\n \"name\": \"MODERATE\",\n \"description\": \"Indicates elevated risk level associated with the payment.\"\n },\n {\n \"name\": \"HIGH\",\n \"description\": \"Indicates significantly elevated risk level with the payment.\"\n }\n ],\n \"x-release-status\": \"BETA\"\n }\n }\n },\n \"terminal_checkout_id\": {\n \"type\": \"string\",\n \"description\": \"An optional ID for a Terminal checkout that is associated with the payment.\",\n \"readOnly\": true,\n \"x-release-status\": \"BETA\"\n },\n \"buyer_email_address\": {\n \"type\": \"string\",\n \"description\": \"The buyer's email address.\",\n \"maxLength\": 255,\n \"readOnly\": true\n },\n \"billing_address\": {\n \"type\": \"object\",\n \"description\": \"Represents a postal address in a country. \\nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"address_line_1\": {\n \"type\": \"string\",\n \"description\": \"The first line of the address.\\n\\nFields that start with `address_line` provide the address's most specific\\ndetails, like street number, street name, and building name. They do *not*\\nprovide less specific details like city, state/province, or country (these\\ndetails are provided in other fields).\",\n \"nullable\": true\n },\n \"address_line_2\": {\n \"type\": \"string\",\n \"description\": \"The second line of the address, if any.\",\n \"nullable\": true\n },\n \"address_line_3\": {\n \"type\": \"string\",\n \"description\": \"The third line of the address, if any.\",\n \"nullable\": true\n },\n \"locality\": {\n \"type\": \"string\",\n \"description\": \"The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"sublocality\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `locality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_2\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_3\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality_2`, if any.\",\n \"nullable\": true\n },\n \"administrative_district_level_1\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's country. In the US, this\\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"administrative_district_level_2\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_1`.\\nIn the US, this is the county.\",\n \"nullable\": true\n },\n \"administrative_district_level_3\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_2`,\\nif any.\",\n \"nullable\": true\n },\n \"postal_code\": {\n \"type\": \"string\",\n \"description\": \"The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"country\": {\n \"type\": \"string\",\n \"enum\": [\n \"ZZ\",\n \"AD\",\n \"AE\",\n \"AF\",\n \"AG\",\n \"AI\",\n \"AL\",\n \"AM\",\n \"AO\",\n \"AQ\",\n \"AR\",\n \"AS\",\n \"AT\",\n \"AU\",\n \"AW\",\n \"AX\",\n \"AZ\",\n \"BA\",\n \"BB\",\n \"BD\",\n \"BE\",\n \"BF\",\n \"BG\",\n \"BH\",\n \"BI\",\n \"BJ\",\n \"BL\",\n \"BM\",\n \"BN\",\n \"BO\",\n \"BQ\",\n \"BR\",\n \"BS\",\n \"BT\",\n \"BV\",\n \"BW\",\n \"BY\",\n \"BZ\",\n \"CA\",\n \"CC\",\n \"CD\",\n \"CF\",\n \"CG\",\n \"CH\",\n \"CI\",\n \"CK\",\n \"CL\",\n \"CM\",\n \"CN\",\n \"CO\",\n \"CR\",\n \"CU\",\n \"CV\",\n \"CW\",\n \"CX\",\n \"CY\",\n \"CZ\",\n \"DE\",\n \"DJ\",\n \"DK\",\n \"DM\",\n \"DO\",\n \"DZ\",\n \"EC\",\n \"EE\",\n \"EG\",\n \"EH\",\n \"ER\",\n \"ES\",\n \"ET\",\n \"FI\",\n \"FJ\",\n \"FK\",\n \"FM\",\n \"FO\",\n \"FR\",\n \"GA\",\n \"GB\",\n \"GD\",\n \"GE\",\n \"GF\",\n \"GG\",\n \"GH\",\n \"GI\",\n \"GL\",\n \"GM\",\n \"GN\",\n \"GP\",\n \"GQ\",\n \"GR\",\n \"GS\",\n \"GT\",\n \"GU\",\n \"GW\",\n \"GY\",\n \"HK\",\n \"HM\",\n \"HN\",\n \"HR\",\n \"HT\",\n \"HU\",\n \"ID\",\n \"IE\",\n \"IL\",\n \"IM\",\n \"IN\",\n \"IO\",\n \"IQ\",\n \"IR\",\n \"IS\",\n \"IT\",\n \"JE\",\n \"JM\",\n \"JO\",\n \"JP\",\n \"KE\",\n \"KG\",\n \"KH\",\n \"KI\",\n \"KM\",\n \"KN\",\n \"KP\",\n \"KR\",\n \"KW\",\n \"KY\",\n \"KZ\",\n \"LA\",\n \"LB\",\n \"LC\",\n \"LI\",\n \"LK\",\n \"LR\",\n \"LS\",\n \"LT\",\n \"LU\",\n \"LV\",\n \"LY\",\n \"MA\",\n \"MC\",\n \"MD\",\n \"ME\",\n \"MF\",\n \"MG\",\n \"MH\",\n \"MK\",\n \"ML\",\n \"MM\",\n \"MN\",\n \"MO\",\n \"MP\",\n \"MQ\",\n \"MR\",\n \"MS\",\n \"MT\",\n \"MU\",\n \"MV\",\n \"MW\",\n \"MX\",\n \"MY\",\n \"MZ\",\n \"NA\",\n \"NC\",\n \"NE\",\n \"NF\",\n \"NG\",\n \"NI\",\n \"NL\",\n \"NO\",\n \"NP\",\n \"NR\",\n \"NU\",\n \"NZ\",\n \"OM\",\n \"PA\",\n \"PE\",\n \"PF\",\n \"PG\",\n \"PH\",\n \"PK\",\n \"PL\",\n \"PM\",\n \"PN\",\n \"PR\",\n \"PS\",\n \"PT\",\n \"PW\",\n \"PY\",\n \"QA\",\n \"RE\",\n \"RO\",\n \"RS\",\n \"RU\",\n \"RW\",\n \"SA\",\n \"SB\",\n \"SC\",\n \"SD\",\n \"SE\",\n \"SG\",\n \"SH\",\n \"SI\",\n \"SJ\",\n \"SK\",\n \"SL\",\n \"SM\",\n \"SN\",\n \"SO\",\n \"SR\",\n \"SS\",\n \"ST\",\n \"SV\",\n \"SX\",\n \"SY\",\n \"SZ\",\n \"TC\",\n \"TD\",\n \"TF\",\n \"TG\",\n \"TH\",\n \"TJ\",\n \"TK\",\n \"TL\",\n \"TM\",\n \"TN\",\n \"TO\",\n \"TR\",\n \"TT\",\n \"TV\",\n \"TW\",\n \"TZ\",\n \"UA\",\n \"UG\",\n \"UM\",\n \"US\",\n \"UY\",\n \"UZ\",\n \"VA\",\n \"VC\",\n \"VE\",\n \"VG\",\n \"VI\",\n \"VN\",\n \"VU\",\n \"WF\",\n \"WS\",\n \"YE\",\n \"YT\",\n \"ZA\",\n \"ZM\",\n \"ZW\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"ZZ\",\n \"description\": \"Unknown\"\n },\n {\n \"name\": \"AD\",\n \"description\": \"Andorra\"\n },\n {\n \"name\": \"AE\",\n \"description\": \"United Arab Emirates\"\n },\n {\n \"name\": \"AF\",\n \"description\": \"Afghanistan\"\n },\n {\n \"name\": \"AG\",\n \"description\": \"Antigua and Barbuda\"\n },\n {\n \"name\": \"AI\",\n \"description\": \"Anguilla\"\n },\n {\n \"name\": \"AL\",\n \"description\": \"Albania\"\n },\n {\n \"name\": \"AM\",\n \"description\": \"Armenia\"\n },\n {\n \"name\": \"AO\",\n \"description\": \"Angola\"\n },\n {\n \"name\": \"AQ\",\n \"description\": \"Antartica\"\n },\n {\n \"name\": \"AR\",\n \"description\": \"Argentina\"\n },\n {\n \"name\": \"AS\",\n \"description\": \"American Samoa\"\n },\n {\n \"name\": \"AT\",\n \"description\": \"Austria\"\n },\n {\n \"name\": \"AU\",\n \"description\": \"Australia\"\n },\n {\n \"name\": \"AW\",\n \"description\": \"Aruba\"\n },\n {\n \"name\": \"AX\",\n \"description\": \"\\u00c5land Islands\"\n },\n {\n \"name\": \"AZ\",\n \"description\": \"Azerbaijan\"\n },\n {\n \"name\": \"BA\",\n \"description\": \"Bosnia and Herzegovina\"\n },\n {\n \"name\": \"BB\",\n \"description\": \"Barbados\"\n },\n {\n \"name\": \"BD\",\n \"description\": \"Bangladesh\"\n },\n {\n \"name\": \"BE\",\n \"description\": \"Belgium\"\n },\n {\n \"name\": \"BF\",\n \"description\": \"Burkina Faso\"\n },\n {\n \"name\": \"BG\",\n \"description\": \"Bulgaria\"\n },\n {\n \"name\": \"BH\",\n \"description\": \"Bahrain\"\n },\n {\n \"name\": \"BI\",\n \"description\": \"Burundi\"\n },\n {\n \"name\": \"BJ\",\n \"description\": \"Benin\"\n },\n {\n \"name\": \"BL\",\n \"description\": \"Saint Barth\\u00e9lemy\"\n },\n {\n \"name\": \"BM\",\n \"description\": \"Bermuda\"\n },\n {\n \"name\": \"BN\",\n \"description\": \"Brunei\"\n },\n {\n \"name\": \"BO\",\n \"description\": \"Bolivia\"\n },\n {\n \"name\": \"BQ\",\n \"description\": \"Bonaire\"\n },\n {\n \"name\": \"BR\",\n \"description\": \"Brazil\"\n },\n {\n \"name\": \"BS\",\n \"description\": \"Bahamas\"\n },\n {\n \"name\": \"BT\",\n \"description\": \"Bhutan\"\n },\n {\n \"name\": \"BV\",\n \"description\": \"Bouvet Island\"\n },\n {\n \"name\": \"BW\",\n \"description\": \"Botswana\"\n },\n {\n \"name\": \"BY\",\n \"description\": \"Belarus\"\n },\n {\n \"name\": \"BZ\",\n \"description\": \"Belize\"\n },\n {\n \"name\": \"CA\",\n \"description\": \"Canada\"\n },\n {\n \"name\": \"CC\",\n \"description\": \"Cocos Islands\"\n },\n {\n \"name\": \"CD\",\n \"description\": \"Democratic Republic of the Congo\"\n },\n {\n \"name\": \"CF\",\n \"description\": \"Central African Republic\"\n },\n {\n \"name\": \"CG\",\n \"description\": \"Congo\"\n },\n {\n \"name\": \"CH\",\n \"description\": \"Switzerland\"\n },\n {\n \"name\": \"CI\",\n \"description\": \"Ivory Coast\"\n },\n {\n \"name\": \"CK\",\n \"description\": \"Cook Islands\"\n },\n {\n \"name\": \"CL\",\n \"description\": \"Chile\"\n },\n {\n \"name\": \"CM\",\n \"description\": \"Cameroon\"\n },\n {\n \"name\": \"CN\",\n \"description\": \"China\"\n },\n {\n \"name\": \"CO\",\n \"description\": \"Colombia\"\n },\n {\n \"name\": \"CR\",\n \"description\": \"Costa Rica\"\n },\n {\n \"name\": \"CU\",\n \"description\": \"Cuba\"\n },\n {\n \"name\": \"CV\",\n \"description\": \"Cabo Verde\"\n },\n {\n \"name\": \"CW\",\n \"description\": \"Cura\\u00e7ao\"\n },\n {\n \"name\": \"CX\",\n \"description\": \"Christmas Island\"\n },\n {\n \"name\": \"CY\",\n \"description\": \"Cyprus\"\n },\n {\n \"name\": \"CZ\",\n \"description\": \"Czechia\"\n },\n {\n \"name\": \"DE\",\n \"description\": \"Germany\"\n },\n {\n \"name\": \"DJ\",\n \"description\": \"Djibouti\"\n },\n {\n \"name\": \"DK\",\n \"description\": \"Denmark\"\n },\n {\n \"name\": \"DM\",\n \"description\": \"Dominica\"\n },\n {\n \"name\": \"DO\",\n \"description\": \"Dominican Republic\"\n },\n {\n \"name\": \"DZ\",\n \"description\": \"Algeria\"\n },\n {\n \"name\": \"EC\",\n \"description\": \"Ecuador\"\n },\n {\n \"name\": \"EE\",\n \"description\": \"Estonia\"\n },\n {\n \"name\": \"EG\",\n \"description\": \"Egypt\"\n },\n {\n \"name\": \"EH\",\n \"description\": \"Western Sahara\"\n },\n {\n \"name\": \"ER\",\n \"description\": \"Eritrea\"\n },\n {\n \"name\": \"ES\",\n \"description\": \"Spain\"\n },\n {\n \"name\": \"ET\",\n \"description\": \"Ethiopia\"\n },\n {\n \"name\": \"FI\",\n \"description\": \"Finland\"\n },\n {\n \"name\": \"FJ\",\n \"description\": \"Fiji\"\n },\n {\n \"name\": \"FK\",\n \"description\": \"Falkland Islands\"\n },\n {\n \"name\": \"FM\",\n \"description\": \"Federated States of Micronesia\"\n },\n {\n \"name\": \"FO\",\n \"description\": \"Faroe Islands\"\n },\n {\n \"name\": \"FR\",\n \"description\": \"France\"\n },\n {\n \"name\": \"GA\",\n \"description\": \"Gabon\"\n },\n {\n \"name\": \"GB\",\n \"description\": \"United Kingdom\"\n },\n {\n \"name\": \"GD\",\n \"description\": \"Grenada\"\n },\n {\n \"name\": \"GE\",\n \"description\": \"Georgia\"\n },\n {\n \"name\": \"GF\",\n \"description\": \"French Guiana\"\n },\n {\n \"name\": \"GG\",\n \"description\": \"Guernsey\"\n },\n {\n \"name\": \"GH\",\n \"description\": \"Ghana\"\n },\n {\n \"name\": \"GI\",\n \"description\": \"Gibraltar\"\n },\n {\n \"name\": \"GL\",\n \"description\": \"Greenland\"\n },\n {\n \"name\": \"GM\",\n \"description\": \"Gambia\"\n },\n {\n \"name\": \"GN\",\n \"description\": \"Guinea\"\n },\n {\n \"name\": \"GP\",\n \"description\": \"Guadeloupe\"\n },\n {\n \"name\": \"GQ\",\n \"description\": \"Equatorial Guinea\"\n },\n {\n \"name\": \"GR\",\n \"description\": \"Greece\"\n },\n {\n \"name\": \"GS\",\n \"description\": \"South Georgia and the South Sandwich Islands\"\n },\n {\n \"name\": \"GT\",\n \"description\": \"Guatemala\"\n },\n {\n \"name\": \"GU\",\n \"description\": \"Guam\"\n },\n {\n \"name\": \"GW\",\n \"description\": \"Guinea-Bissau\"\n },\n {\n \"name\": \"GY\",\n \"description\": \"Guyana\"\n },\n {\n \"name\": \"HK\",\n \"description\": \"Hong Kong\"\n },\n {\n \"name\": \"HM\",\n \"description\": \"Heard Island and McDonald Islands\"\n },\n {\n \"name\": \"HN\",\n \"description\": \"Honduras\"\n },\n {\n \"name\": \"HR\",\n \"description\": \"Croatia\"\n },\n {\n \"name\": \"HT\",\n \"description\": \"Haiti\"\n },\n {\n \"name\": \"HU\",\n \"description\": \"Hungary\"\n },\n {\n \"name\": \"ID\",\n \"description\": \"Indonesia\"\n },\n {\n \"name\": \"IE\",\n \"description\": \"Ireland\"\n },\n {\n \"name\": \"IL\",\n \"description\": \"Israel\"\n },\n {\n \"name\": \"IM\",\n \"description\": \"Isle of Man\"\n },\n {\n \"name\": \"IN\",\n \"description\": \"India\"\n },\n {\n \"name\": \"IO\",\n \"description\": \"British Indian Ocean Territory\"\n },\n {\n \"name\": \"IQ\",\n \"description\": \"Iraq\"\n },\n {\n \"name\": \"IR\",\n \"description\": \"Iran\"\n },\n {\n \"name\": \"IS\",\n \"description\": \"Iceland\"\n },\n {\n \"name\": \"IT\",\n \"description\": \"Italy\"\n },\n {\n \"name\": \"JE\",\n \"description\": \"Jersey\"\n },\n {\n \"name\": \"JM\",\n \"description\": \"Jamaica\"\n },\n {\n \"name\": \"JO\",\n \"description\": \"Jordan\"\n },\n {\n \"name\": \"JP\",\n \"description\": \"Japan\"\n },\n {\n \"name\": \"KE\",\n \"description\": \"Kenya\"\n },\n {\n \"name\": \"KG\",\n \"description\": \"Kyrgyzstan\"\n },\n {\n \"name\": \"KH\",\n \"description\": \"Cambodia\"\n },\n {\n \"name\": \"KI\",\n \"description\": \"Kiribati\"\n },\n {\n \"name\": \"KM\",\n \"description\": \"Comoros\"\n },\n {\n \"name\": \"KN\",\n \"description\": \"Saint Kitts and Nevis\"\n },\n {\n \"name\": \"KP\",\n \"description\": \"Democratic People's Republic of Korea\"\n },\n {\n \"name\": \"KR\",\n \"description\": \"Republic of Korea\"\n },\n {\n \"name\": \"KW\",\n \"description\": \"Kuwait\"\n },\n {\n \"name\": \"KY\",\n \"description\": \"Cayman Islands\"\n },\n {\n \"name\": \"KZ\",\n \"description\": \"Kazakhstan\"\n },\n {\n \"name\": \"LA\",\n \"description\": \"Lao People's Democratic Republic\"\n },\n {\n \"name\": \"LB\",\n \"description\": \"Lebanon\"\n },\n {\n \"name\": \"LC\",\n \"description\": \"Saint Lucia\"\n },\n {\n \"name\": \"LI\",\n \"description\": \"Liechtenstein\"\n },\n {\n \"name\": \"LK\",\n \"description\": \"Sri Lanka\"\n },\n {\n \"name\": \"LR\",\n \"description\": \"Liberia\"\n },\n {\n \"name\": \"LS\",\n \"description\": \"Lesotho\"\n },\n {\n \"name\": \"LT\",\n \"description\": \"Lithuania\"\n },\n {\n \"name\": \"LU\",\n \"description\": \"Luxembourg\"\n },\n {\n \"name\": \"LV\",\n \"description\": \"Latvia\"\n },\n {\n \"name\": \"LY\",\n \"description\": \"Libya\"\n },\n {\n \"name\": \"MA\",\n \"description\": \"Morocco\"\n },\n {\n \"name\": \"MC\",\n \"description\": \"Monaco\"\n },\n {\n \"name\": \"MD\",\n \"description\": \"Moldova\"\n },\n {\n \"name\": \"ME\",\n \"description\": \"Montenegro\"\n },\n {\n \"name\": \"MF\",\n \"description\": \"Saint Martin\"\n },\n {\n \"name\": \"MG\",\n \"description\": \"Madagascar\"\n },\n {\n \"name\": \"MH\",\n \"description\": \"Marshall Islands\"\n },\n {\n \"name\": \"MK\",\n \"description\": \"North Macedonia\"\n },\n {\n \"name\": \"ML\",\n \"description\": \"Mali\"\n },\n {\n \"name\": \"MM\",\n \"description\": \"Myanmar\"\n },\n {\n \"name\": \"MN\",\n \"description\": \"Mongolia\"\n },\n {\n \"name\": \"MO\",\n \"description\": \"Macao\"\n },\n {\n \"name\": \"MP\",\n \"description\": \"Northern Mariana Islands\"\n },\n {\n \"name\": \"MQ\",\n \"description\": \"Martinique\"\n },\n {\n \"name\": \"MR\",\n \"description\": \"Mauritania\"\n },\n {\n \"name\": \"MS\",\n \"description\": \"Montserrat\"\n },\n {\n \"name\": \"MT\",\n \"description\": \"Malta\"\n },\n {\n \"name\": \"MU\",\n \"description\": \"Mauritius\"\n },\n {\n \"name\": \"MV\",\n \"description\": \"Maldives\"\n },\n {\n \"name\": \"MW\",\n \"description\": \"Malawi\"\n },\n {\n \"name\": \"MX\",\n \"description\": \"Mexico\"\n },\n {\n \"name\": \"MY\",\n \"description\": \"Malaysia\"\n },\n {\n \"name\": \"MZ\",\n \"description\": \"Mozambique\"\n },\n {\n \"name\": \"NA\",\n \"description\": \"Namibia\"\n },\n {\n \"name\": \"NC\",\n \"description\": \"New Caledonia\"\n },\n {\n \"name\": \"NE\",\n \"description\": \"Niger\"\n },\n {\n \"name\": \"NF\",\n \"description\": \"Norfolk Island\"\n },\n {\n \"name\": \"NG\",\n \"description\": \"Nigeria\"\n },\n {\n \"name\": \"NI\",\n \"description\": \"Nicaragua\"\n },\n {\n \"name\": \"NL\",\n \"description\": \"Netherlands\"\n },\n {\n \"name\": \"NO\",\n \"description\": \"Norway\"\n },\n {\n \"name\": \"NP\",\n \"description\": \"Nepal\"\n },\n {\n \"name\": \"NR\",\n \"description\": \"Nauru\"\n },\n {\n \"name\": \"NU\",\n \"description\": \"Niue\"\n },\n {\n \"name\": \"NZ\",\n \"description\": \"New Zealand\"\n },\n {\n \"name\": \"OM\",\n \"description\": \"Oman\"\n },\n {\n \"name\": \"PA\",\n \"description\": \"Panama\"\n },\n {\n \"name\": \"PE\",\n \"description\": \"Peru\"\n },\n {\n \"name\": \"PF\",\n \"description\": \"French Polynesia\"\n },\n {\n \"name\": \"PG\",\n \"description\": \"Papua New Guinea\"\n },\n {\n \"name\": \"PH\",\n \"description\": \"Philippines\"\n },\n {\n \"name\": \"PK\",\n \"description\": \"Pakistan\"\n },\n {\n \"name\": \"PL\",\n \"description\": \"Poland\"\n },\n {\n \"name\": \"PM\",\n \"description\": \"Saint Pierre and Miquelon\"\n },\n {\n \"name\": \"PN\",\n \"description\": \"Pitcairn\"\n },\n {\n \"name\": \"PR\",\n \"description\": \"Puerto Rico\"\n },\n {\n \"name\": \"PS\",\n \"description\": \"Palestine\"\n },\n {\n \"name\": \"PT\",\n \"description\": \"Portugal\"\n },\n {\n \"name\": \"PW\",\n \"description\": \"Palau\"\n },\n {\n \"name\": \"PY\",\n \"description\": \"Paraguay\"\n },\n {\n \"name\": \"QA\",\n \"description\": \"Qatar\"\n },\n {\n \"name\": \"RE\",\n \"description\": \"R\\u00e9union\"\n },\n {\n \"name\": \"RO\",\n \"description\": \"Romania\"\n },\n {\n \"name\": \"RS\",\n \"description\": \"Serbia\"\n },\n {\n \"name\": \"RU\",\n \"description\": \"Russia\"\n },\n {\n \"name\": \"RW\",\n \"description\": \"Rwanda\"\n },\n {\n \"name\": \"SA\",\n \"description\": \"Saudi Arabia\"\n },\n {\n \"name\": \"SB\",\n \"description\": \"Solomon Islands\"\n },\n {\n \"name\": \"SC\",\n \"description\": \"Seychelles\"\n },\n {\n \"name\": \"SD\",\n \"description\": \"Sudan\"\n },\n {\n \"name\": \"SE\",\n \"description\": \"Sweden\"\n },\n {\n \"name\": \"SG\",\n \"description\": \"Singapore\"\n },\n {\n \"name\": \"SH\",\n \"description\": \"Saint Helena, Ascension and Tristan da Cunha\"\n },\n {\n \"name\": \"SI\",\n \"description\": \"Slovenia\"\n },\n {\n \"name\": \"SJ\",\n \"description\": \"Svalbard and Jan Mayen\"\n },\n {\n \"name\": \"SK\",\n \"description\": \"Slovakia\"\n },\n {\n \"name\": \"SL\",\n \"description\": \"Sierra Leone\"\n },\n {\n \"name\": \"SM\",\n \"description\": \"San Marino\"\n },\n {\n \"name\": \"SN\",\n \"description\": \"Senegal\"\n },\n {\n \"name\": \"SO\",\n \"description\": \"Somalia\"\n },\n {\n \"name\": \"SR\",\n \"description\": \"Suriname\"\n },\n {\n \"name\": \"SS\",\n \"description\": \"South Sudan\"\n },\n {\n \"name\": \"ST\",\n \"description\": \"Sao Tome and Principe\"\n },\n {\n \"name\": \"SV\",\n \"description\": \"El Salvador\"\n },\n {\n \"name\": \"SX\",\n \"description\": \"Sint Maarten\"\n },\n {\n \"name\": \"SY\",\n \"description\": \"Syrian Arab Republic\"\n },\n {\n \"name\": \"SZ\",\n \"description\": \"Eswatini\"\n },\n {\n \"name\": \"TC\",\n \"description\": \"Turks and Caicos Islands\"\n },\n {\n \"name\": \"TD\",\n \"description\": \"Chad\"\n },\n {\n \"name\": \"TF\",\n \"description\": \"French Southern Territories\"\n },\n {\n \"name\": \"TG\",\n \"description\": \"Togo\"\n },\n {\n \"name\": \"TH\",\n \"description\": \"Thailand\"\n },\n {\n \"name\": \"TJ\",\n \"description\": \"Tajikistan\"\n },\n {\n \"name\": \"TK\",\n \"description\": \"Tokelau\"\n },\n {\n \"name\": \"TL\",\n \"description\": \"Timor-Leste\"\n },\n {\n \"name\": \"TM\",\n \"description\": \"Turkmenistan\"\n },\n {\n \"name\": \"TN\",\n \"description\": \"Tunisia\"\n },\n {\n \"name\": \"TO\",\n \"description\": \"Tonga\"\n },\n {\n \"name\": \"TR\",\n \"description\": \"Turkey\"\n },\n {\n \"name\": \"TT\",\n \"description\": \"Trinidad and Tobago\"\n },\n {\n \"name\": \"TV\",\n \"description\": \"Tuvalu\"\n },\n {\n \"name\": \"TW\",\n \"description\": \"Taiwan\"\n },\n {\n \"name\": \"TZ\",\n \"description\": \"Tanzania\"\n },\n {\n \"name\": \"UA\",\n \"description\": \"Ukraine\"\n },\n {\n \"name\": \"UG\",\n \"description\": \"Uganda\"\n },\n {\n \"name\": \"UM\",\n \"description\": \"United States Minor Outlying Islands\"\n },\n {\n \"name\": \"US\",\n \"description\": \"United States of America\"\n },\n {\n \"name\": \"UY\",\n \"description\": \"Uruguay\"\n },\n {\n \"name\": \"UZ\",\n \"description\": \"Uzbekistan\"\n },\n {\n \"name\": \"VA\",\n \"description\": \"Vatican City\"\n },\n {\n \"name\": \"VC\",\n \"description\": \"Saint Vincent and the Grenadines\"\n },\n {\n \"name\": \"VE\",\n \"description\": \"Venezuela\"\n },\n {\n \"name\": \"VG\",\n \"description\": \"British Virgin Islands\"\n },\n {\n \"name\": \"VI\",\n \"description\": \"U.S. Virgin Islands\"\n },\n {\n \"name\": \"VN\",\n \"description\": \"Vietnam\"\n },\n {\n \"name\": \"VU\",\n \"description\": \"Vanuatu\"\n },\n {\n \"name\": \"WF\",\n \"description\": \"Wallis and Futuna\"\n },\n {\n \"name\": \"WS\",\n \"description\": \"Samoa\"\n },\n {\n \"name\": \"YE\",\n \"description\": \"Yemen\"\n },\n {\n \"name\": \"YT\",\n \"description\": \"Mayotte\"\n },\n {\n \"name\": \"ZA\",\n \"description\": \"South Africa\"\n },\n {\n \"name\": \"ZM\",\n \"description\": \"Zambia\"\n },\n {\n \"name\": \"ZW\",\n \"description\": \"Zimbabwe\"\n }\n ],\n \"description\": \"Indicates the country associated with another entity, such as a business.\\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm).\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"first_name\": {\n \"type\": \"string\",\n \"description\": \"Optional first name when it's representing recipient.\",\n \"nullable\": true\n },\n \"last_name\": {\n \"type\": \"string\",\n \"description\": \"Optional last name when it's representing recipient.\",\n \"nullable\": true\n }\n }\n },\n \"shipping_address\": {\n \"type\": \"object\",\n \"description\": \"Represents a postal address in a country. \\nFor more information, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"address_line_1\": {\n \"type\": \"string\",\n \"description\": \"The first line of the address.\\n\\nFields that start with `address_line` provide the address's most specific\\ndetails, like street number, street name, and building name. They do *not*\\nprovide less specific details like city, state/province, or country (these\\ndetails are provided in other fields).\",\n \"nullable\": true\n },\n \"address_line_2\": {\n \"type\": \"string\",\n \"description\": \"The second line of the address, if any.\",\n \"nullable\": true\n },\n \"address_line_3\": {\n \"type\": \"string\",\n \"description\": \"The third line of the address, if any.\",\n \"nullable\": true\n },\n \"locality\": {\n \"type\": \"string\",\n \"description\": \"The city or town of the address. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"sublocality\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `locality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_2\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality`, if any.\",\n \"nullable\": true\n },\n \"sublocality_3\": {\n \"type\": \"string\",\n \"description\": \"A civil region within the address's `sublocality_2`, if any.\",\n \"nullable\": true\n },\n \"administrative_district_level_1\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's country. In the US, this\\nis the state. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"administrative_district_level_2\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_1`.\\nIn the US, this is the county.\",\n \"nullable\": true\n },\n \"administrative_district_level_3\": {\n \"type\": \"string\",\n \"description\": \"A civil entity within the address's `administrative_district_level_2`,\\nif any.\",\n \"nullable\": true\n },\n \"postal_code\": {\n \"type\": \"string\",\n \"description\": \"The address's postal code. For a full list of field meanings by country, see [Working with Addresses](https://developer.squareup.com/docs/build-basics/working-with-addresses).\",\n \"nullable\": true\n },\n \"country\": {\n \"type\": \"string\",\n \"enum\": [\n \"ZZ\",\n \"AD\",\n \"AE\",\n \"AF\",\n \"AG\",\n \"AI\",\n \"AL\",\n \"AM\",\n \"AO\",\n \"AQ\",\n \"AR\",\n \"AS\",\n \"AT\",\n \"AU\",\n \"AW\",\n \"AX\",\n \"AZ\",\n \"BA\",\n \"BB\",\n \"BD\",\n \"BE\",\n \"BF\",\n \"BG\",\n \"BH\",\n \"BI\",\n \"BJ\",\n \"BL\",\n \"BM\",\n \"BN\",\n \"BO\",\n \"BQ\",\n \"BR\",\n \"BS\",\n \"BT\",\n \"BV\",\n \"BW\",\n \"BY\",\n \"BZ\",\n \"CA\",\n \"CC\",\n \"CD\",\n \"CF\",\n \"CG\",\n \"CH\",\n \"CI\",\n \"CK\",\n \"CL\",\n \"CM\",\n \"CN\",\n \"CO\",\n \"CR\",\n \"CU\",\n \"CV\",\n \"CW\",\n \"CX\",\n \"CY\",\n \"CZ\",\n \"DE\",\n \"DJ\",\n \"DK\",\n \"DM\",\n \"DO\",\n \"DZ\",\n \"EC\",\n \"EE\",\n \"EG\",\n \"EH\",\n \"ER\",\n \"ES\",\n \"ET\",\n \"FI\",\n \"FJ\",\n \"FK\",\n \"FM\",\n \"FO\",\n \"FR\",\n \"GA\",\n \"GB\",\n \"GD\",\n \"GE\",\n \"GF\",\n \"GG\",\n \"GH\",\n \"GI\",\n \"GL\",\n \"GM\",\n \"GN\",\n \"GP\",\n \"GQ\",\n \"GR\",\n \"GS\",\n \"GT\",\n \"GU\",\n \"GW\",\n \"GY\",\n \"HK\",\n \"HM\",\n \"HN\",\n \"HR\",\n \"HT\",\n \"HU\",\n \"ID\",\n \"IE\",\n \"IL\",\n \"IM\",\n \"IN\",\n \"IO\",\n \"IQ\",\n \"IR\",\n \"IS\",\n \"IT\",\n \"JE\",\n \"JM\",\n \"JO\",\n \"JP\",\n \"KE\",\n \"KG\",\n \"KH\",\n \"KI\",\n \"KM\",\n \"KN\",\n \"KP\",\n \"KR\",\n \"KW\",\n \"KY\",\n \"KZ\",\n \"LA\",\n \"LB\",\n \"LC\",\n \"LI\",\n \"LK\",\n \"LR\",\n \"LS\",\n \"LT\",\n \"LU\",\n \"LV\",\n \"LY\",\n \"MA\",\n \"MC\",\n \"MD\",\n \"ME\",\n \"MF\",\n \"MG\",\n \"MH\",\n \"MK\",\n \"ML\",\n \"MM\",\n \"MN\",\n \"MO\",\n \"MP\",\n \"MQ\",\n \"MR\",\n \"MS\",\n \"MT\",\n \"MU\",\n \"MV\",\n \"MW\",\n \"MX\",\n \"MY\",\n \"MZ\",\n \"NA\",\n \"NC\",\n \"NE\",\n \"NF\",\n \"NG\",\n \"NI\",\n \"NL\",\n \"NO\",\n \"NP\",\n \"NR\",\n \"NU\",\n \"NZ\",\n \"OM\",\n \"PA\",\n \"PE\",\n \"PF\",\n \"PG\",\n \"PH\",\n \"PK\",\n \"PL\",\n \"PM\",\n \"PN\",\n \"PR\",\n \"PS\",\n \"PT\",\n \"PW\",\n \"PY\",\n \"QA\",\n \"RE\",\n \"RO\",\n \"RS\",\n \"RU\",\n \"RW\",\n \"SA\",\n \"SB\",\n \"SC\",\n \"SD\",\n \"SE\",\n \"SG\",\n \"SH\",\n \"SI\",\n \"SJ\",\n \"SK\",\n \"SL\",\n \"SM\",\n \"SN\",\n \"SO\",\n \"SR\",\n \"SS\",\n \"ST\",\n \"SV\",\n \"SX\",\n \"SY\",\n \"SZ\",\n \"TC\",\n \"TD\",\n \"TF\",\n \"TG\",\n \"TH\",\n \"TJ\",\n \"TK\",\n \"TL\",\n \"TM\",\n \"TN\",\n \"TO\",\n \"TR\",\n \"TT\",\n \"TV\",\n \"TW\",\n \"TZ\",\n \"UA\",\n \"UG\",\n \"UM\",\n \"US\",\n \"UY\",\n \"UZ\",\n \"VA\",\n \"VC\",\n \"VE\",\n \"VG\",\n \"VI\",\n \"VN\",\n \"VU\",\n \"WF\",\n \"WS\",\n \"YE\",\n \"YT\",\n \"ZA\",\n \"ZM\",\n \"ZW\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"ZZ\",\n \"description\": \"Unknown\"\n },\n {\n \"name\": \"AD\",\n \"description\": \"Andorra\"\n },\n {\n \"name\": \"AE\",\n \"description\": \"United Arab Emirates\"\n },\n {\n \"name\": \"AF\",\n \"description\": \"Afghanistan\"\n },\n {\n \"name\": \"AG\",\n \"description\": \"Antigua and Barbuda\"\n },\n {\n \"name\": \"AI\",\n \"description\": \"Anguilla\"\n },\n {\n \"name\": \"AL\",\n \"description\": \"Albania\"\n },\n {\n \"name\": \"AM\",\n \"description\": \"Armenia\"\n },\n {\n \"name\": \"AO\",\n \"description\": \"Angola\"\n },\n {\n \"name\": \"AQ\",\n \"description\": \"Antartica\"\n },\n {\n \"name\": \"AR\",\n \"description\": \"Argentina\"\n },\n {\n \"name\": \"AS\",\n \"description\": \"American Samoa\"\n },\n {\n \"name\": \"AT\",\n \"description\": \"Austria\"\n },\n {\n \"name\": \"AU\",\n \"description\": \"Australia\"\n },\n {\n \"name\": \"AW\",\n \"description\": \"Aruba\"\n },\n {\n \"name\": \"AX\",\n \"description\": \"\\u00c5land Islands\"\n },\n {\n \"name\": \"AZ\",\n \"description\": \"Azerbaijan\"\n },\n {\n \"name\": \"BA\",\n \"description\": \"Bosnia and Herzegovina\"\n },\n {\n \"name\": \"BB\",\n \"description\": \"Barbados\"\n },\n {\n \"name\": \"BD\",\n \"description\": \"Bangladesh\"\n },\n {\n \"name\": \"BE\",\n \"description\": \"Belgium\"\n },\n {\n \"name\": \"BF\",\n \"description\": \"Burkina Faso\"\n },\n {\n \"name\": \"BG\",\n \"description\": \"Bulgaria\"\n },\n {\n \"name\": \"BH\",\n \"description\": \"Bahrain\"\n },\n {\n \"name\": \"BI\",\n \"description\": \"Burundi\"\n },\n {\n \"name\": \"BJ\",\n \"description\": \"Benin\"\n },\n {\n \"name\": \"BL\",\n \"description\": \"Saint Barth\\u00e9lemy\"\n },\n {\n \"name\": \"BM\",\n \"description\": \"Bermuda\"\n },\n {\n \"name\": \"BN\",\n \"description\": \"Brunei\"\n },\n {\n \"name\": \"BO\",\n \"description\": \"Bolivia\"\n },\n {\n \"name\": \"BQ\",\n \"description\": \"Bonaire\"\n },\n {\n \"name\": \"BR\",\n \"description\": \"Brazil\"\n },\n {\n \"name\": \"BS\",\n \"description\": \"Bahamas\"\n },\n {\n \"name\": \"BT\",\n \"description\": \"Bhutan\"\n },\n {\n \"name\": \"BV\",\n \"description\": \"Bouvet Island\"\n },\n {\n \"name\": \"BW\",\n \"description\": \"Botswana\"\n },\n {\n \"name\": \"BY\",\n \"description\": \"Belarus\"\n },\n {\n \"name\": \"BZ\",\n \"description\": \"Belize\"\n },\n {\n \"name\": \"CA\",\n \"description\": \"Canada\"\n },\n {\n \"name\": \"CC\",\n \"description\": \"Cocos Islands\"\n },\n {\n \"name\": \"CD\",\n \"description\": \"Democratic Republic of the Congo\"\n },\n {\n \"name\": \"CF\",\n \"description\": \"Central African Republic\"\n },\n {\n \"name\": \"CG\",\n \"description\": \"Congo\"\n },\n {\n \"name\": \"CH\",\n \"description\": \"Switzerland\"\n },\n {\n \"name\": \"CI\",\n \"description\": \"Ivory Coast\"\n },\n {\n \"name\": \"CK\",\n \"description\": \"Cook Islands\"\n },\n {\n \"name\": \"CL\",\n \"description\": \"Chile\"\n },\n {\n \"name\": \"CM\",\n \"description\": \"Cameroon\"\n },\n {\n \"name\": \"CN\",\n \"description\": \"China\"\n },\n {\n \"name\": \"CO\",\n \"description\": \"Colombia\"\n },\n {\n \"name\": \"CR\",\n \"description\": \"Costa Rica\"\n },\n {\n \"name\": \"CU\",\n \"description\": \"Cuba\"\n },\n {\n \"name\": \"CV\",\n \"description\": \"Cabo Verde\"\n },\n {\n \"name\": \"CW\",\n \"description\": \"Cura\\u00e7ao\"\n },\n {\n \"name\": \"CX\",\n \"description\": \"Christmas Island\"\n },\n {\n \"name\": \"CY\",\n \"description\": \"Cyprus\"\n },\n {\n \"name\": \"CZ\",\n \"description\": \"Czechia\"\n },\n {\n \"name\": \"DE\",\n \"description\": \"Germany\"\n },\n {\n \"name\": \"DJ\",\n \"description\": \"Djibouti\"\n },\n {\n \"name\": \"DK\",\n \"description\": \"Denmark\"\n },\n {\n \"name\": \"DM\",\n \"description\": \"Dominica\"\n },\n {\n \"name\": \"DO\",\n \"description\": \"Dominican Republic\"\n },\n {\n \"name\": \"DZ\",\n \"description\": \"Algeria\"\n },\n {\n \"name\": \"EC\",\n \"description\": \"Ecuador\"\n },\n {\n \"name\": \"EE\",\n \"description\": \"Estonia\"\n },\n {\n \"name\": \"EG\",\n \"description\": \"Egypt\"\n },\n {\n \"name\": \"EH\",\n \"description\": \"Western Sahara\"\n },\n {\n \"name\": \"ER\",\n \"description\": \"Eritrea\"\n },\n {\n \"name\": \"ES\",\n \"description\": \"Spain\"\n },\n {\n \"name\": \"ET\",\n \"description\": \"Ethiopia\"\n },\n {\n \"name\": \"FI\",\n \"description\": \"Finland\"\n },\n {\n \"name\": \"FJ\",\n \"description\": \"Fiji\"\n },\n {\n \"name\": \"FK\",\n \"description\": \"Falkland Islands\"\n },\n {\n \"name\": \"FM\",\n \"description\": \"Federated States of Micronesia\"\n },\n {\n \"name\": \"FO\",\n \"description\": \"Faroe Islands\"\n },\n {\n \"name\": \"FR\",\n \"description\": \"France\"\n },\n {\n \"name\": \"GA\",\n \"description\": \"Gabon\"\n },\n {\n \"name\": \"GB\",\n \"description\": \"United Kingdom\"\n },\n {\n \"name\": \"GD\",\n \"description\": \"Grenada\"\n },\n {\n \"name\": \"GE\",\n \"description\": \"Georgia\"\n },\n {\n \"name\": \"GF\",\n \"description\": \"French Guiana\"\n },\n {\n \"name\": \"GG\",\n \"description\": \"Guernsey\"\n },\n {\n \"name\": \"GH\",\n \"description\": \"Ghana\"\n },\n {\n \"name\": \"GI\",\n \"description\": \"Gibraltar\"\n },\n {\n \"name\": \"GL\",\n \"description\": \"Greenland\"\n },\n {\n \"name\": \"GM\",\n \"description\": \"Gambia\"\n },\n {\n \"name\": \"GN\",\n \"description\": \"Guinea\"\n },\n {\n \"name\": \"GP\",\n \"description\": \"Guadeloupe\"\n },\n {\n \"name\": \"GQ\",\n \"description\": \"Equatorial Guinea\"\n },\n {\n \"name\": \"GR\",\n \"description\": \"Greece\"\n },\n {\n \"name\": \"GS\",\n \"description\": \"South Georgia and the South Sandwich Islands\"\n },\n {\n \"name\": \"GT\",\n \"description\": \"Guatemala\"\n },\n {\n \"name\": \"GU\",\n \"description\": \"Guam\"\n },\n {\n \"name\": \"GW\",\n \"description\": \"Guinea-Bissau\"\n },\n {\n \"name\": \"GY\",\n \"description\": \"Guyana\"\n },\n {\n \"name\": \"HK\",\n \"description\": \"Hong Kong\"\n },\n {\n \"name\": \"HM\",\n \"description\": \"Heard Island and McDonald Islands\"\n },\n {\n \"name\": \"HN\",\n \"description\": \"Honduras\"\n },\n {\n \"name\": \"HR\",\n \"description\": \"Croatia\"\n },\n {\n \"name\": \"HT\",\n \"description\": \"Haiti\"\n },\n {\n \"name\": \"HU\",\n \"description\": \"Hungary\"\n },\n {\n \"name\": \"ID\",\n \"description\": \"Indonesia\"\n },\n {\n \"name\": \"IE\",\n \"description\": \"Ireland\"\n },\n {\n \"name\": \"IL\",\n \"description\": \"Israel\"\n },\n {\n \"name\": \"IM\",\n \"description\": \"Isle of Man\"\n },\n {\n \"name\": \"IN\",\n \"description\": \"India\"\n },\n {\n \"name\": \"IO\",\n \"description\": \"British Indian Ocean Territory\"\n },\n {\n \"name\": \"IQ\",\n \"description\": \"Iraq\"\n },\n {\n \"name\": \"IR\",\n \"description\": \"Iran\"\n },\n {\n \"name\": \"IS\",\n \"description\": \"Iceland\"\n },\n {\n \"name\": \"IT\",\n \"description\": \"Italy\"\n },\n {\n \"name\": \"JE\",\n \"description\": \"Jersey\"\n },\n {\n \"name\": \"JM\",\n \"description\": \"Jamaica\"\n },\n {\n \"name\": \"JO\",\n \"description\": \"Jordan\"\n },\n {\n \"name\": \"JP\",\n \"description\": \"Japan\"\n },\n {\n \"name\": \"KE\",\n \"description\": \"Kenya\"\n },\n {\n \"name\": \"KG\",\n \"description\": \"Kyrgyzstan\"\n },\n {\n \"name\": \"KH\",\n \"description\": \"Cambodia\"\n },\n {\n \"name\": \"KI\",\n \"description\": \"Kiribati\"\n },\n {\n \"name\": \"KM\",\n \"description\": \"Comoros\"\n },\n {\n \"name\": \"KN\",\n \"description\": \"Saint Kitts and Nevis\"\n },\n {\n \"name\": \"KP\",\n \"description\": \"Democratic People's Republic of Korea\"\n },\n {\n \"name\": \"KR\",\n \"description\": \"Republic of Korea\"\n },\n {\n \"name\": \"KW\",\n \"description\": \"Kuwait\"\n },\n {\n \"name\": \"KY\",\n \"description\": \"Cayman Islands\"\n },\n {\n \"name\": \"KZ\",\n \"description\": \"Kazakhstan\"\n },\n {\n \"name\": \"LA\",\n \"description\": \"Lao People's Democratic Republic\"\n },\n {\n \"name\": \"LB\",\n \"description\": \"Lebanon\"\n },\n {\n \"name\": \"LC\",\n \"description\": \"Saint Lucia\"\n },\n {\n \"name\": \"LI\",\n \"description\": \"Liechtenstein\"\n },\n {\n \"name\": \"LK\",\n \"description\": \"Sri Lanka\"\n },\n {\n \"name\": \"LR\",\n \"description\": \"Liberia\"\n },\n {\n \"name\": \"LS\",\n \"description\": \"Lesotho\"\n },\n {\n \"name\": \"LT\",\n \"description\": \"Lithuania\"\n },\n {\n \"name\": \"LU\",\n \"description\": \"Luxembourg\"\n },\n {\n \"name\": \"LV\",\n \"description\": \"Latvia\"\n },\n {\n \"name\": \"LY\",\n \"description\": \"Libya\"\n },\n {\n \"name\": \"MA\",\n \"description\": \"Morocco\"\n },\n {\n \"name\": \"MC\",\n \"description\": \"Monaco\"\n },\n {\n \"name\": \"MD\",\n \"description\": \"Moldova\"\n },\n {\n \"name\": \"ME\",\n \"description\": \"Montenegro\"\n },\n {\n \"name\": \"MF\",\n \"description\": \"Saint Martin\"\n },\n {\n \"name\": \"MG\",\n \"description\": \"Madagascar\"\n },\n {\n \"name\": \"MH\",\n \"description\": \"Marshall Islands\"\n },\n {\n \"name\": \"MK\",\n \"description\": \"North Macedonia\"\n },\n {\n \"name\": \"ML\",\n \"description\": \"Mali\"\n },\n {\n \"name\": \"MM\",\n \"description\": \"Myanmar\"\n },\n {\n \"name\": \"MN\",\n \"description\": \"Mongolia\"\n },\n {\n \"name\": \"MO\",\n \"description\": \"Macao\"\n },\n {\n \"name\": \"MP\",\n \"description\": \"Northern Mariana Islands\"\n },\n {\n \"name\": \"MQ\",\n \"description\": \"Martinique\"\n },\n {\n \"name\": \"MR\",\n \"description\": \"Mauritania\"\n },\n {\n \"name\": \"MS\",\n \"description\": \"Montserrat\"\n },\n {\n \"name\": \"MT\",\n \"description\": \"Malta\"\n },\n {\n \"name\": \"MU\",\n \"description\": \"Mauritius\"\n },\n {\n \"name\": \"MV\",\n \"description\": \"Maldives\"\n },\n {\n \"name\": \"MW\",\n \"description\": \"Malawi\"\n },\n {\n \"name\": \"MX\",\n \"description\": \"Mexico\"\n },\n {\n \"name\": \"MY\",\n \"description\": \"Malaysia\"\n },\n {\n \"name\": \"MZ\",\n \"description\": \"Mozambique\"\n },\n {\n \"name\": \"NA\",\n \"description\": \"Namibia\"\n },\n {\n \"name\": \"NC\",\n \"description\": \"New Caledonia\"\n },\n {\n \"name\": \"NE\",\n \"description\": \"Niger\"\n },\n {\n \"name\": \"NF\",\n \"description\": \"Norfolk Island\"\n },\n {\n \"name\": \"NG\",\n \"description\": \"Nigeria\"\n },\n {\n \"name\": \"NI\",\n \"description\": \"Nicaragua\"\n },\n {\n \"name\": \"NL\",\n \"description\": \"Netherlands\"\n },\n {\n \"name\": \"NO\",\n \"description\": \"Norway\"\n },\n {\n \"name\": \"NP\",\n \"description\": \"Nepal\"\n },\n {\n \"name\": \"NR\",\n \"description\": \"Nauru\"\n },\n {\n \"name\": \"NU\",\n \"description\": \"Niue\"\n },\n {\n \"name\": \"NZ\",\n \"description\": \"New Zealand\"\n },\n {\n \"name\": \"OM\",\n \"description\": \"Oman\"\n },\n {\n \"name\": \"PA\",\n \"description\": \"Panama\"\n },\n {\n \"name\": \"PE\",\n \"description\": \"Peru\"\n },\n {\n \"name\": \"PF\",\n \"description\": \"French Polynesia\"\n },\n {\n \"name\": \"PG\",\n \"description\": \"Papua New Guinea\"\n },\n {\n \"name\": \"PH\",\n \"description\": \"Philippines\"\n },\n {\n \"name\": \"PK\",\n \"description\": \"Pakistan\"\n },\n {\n \"name\": \"PL\",\n \"description\": \"Poland\"\n },\n {\n \"name\": \"PM\",\n \"description\": \"Saint Pierre and Miquelon\"\n },\n {\n \"name\": \"PN\",\n \"description\": \"Pitcairn\"\n },\n {\n \"name\": \"PR\",\n \"description\": \"Puerto Rico\"\n },\n {\n \"name\": \"PS\",\n \"description\": \"Palestine\"\n },\n {\n \"name\": \"PT\",\n \"description\": \"Portugal\"\n },\n {\n \"name\": \"PW\",\n \"description\": \"Palau\"\n },\n {\n \"name\": \"PY\",\n \"description\": \"Paraguay\"\n },\n {\n \"name\": \"QA\",\n \"description\": \"Qatar\"\n },\n {\n \"name\": \"RE\",\n \"description\": \"R\\u00e9union\"\n },\n {\n \"name\": \"RO\",\n \"description\": \"Romania\"\n },\n {\n \"name\": \"RS\",\n \"description\": \"Serbia\"\n },\n {\n \"name\": \"RU\",\n \"description\": \"Russia\"\n },\n {\n \"name\": \"RW\",\n \"description\": \"Rwanda\"\n },\n {\n \"name\": \"SA\",\n \"description\": \"Saudi Arabia\"\n },\n {\n \"name\": \"SB\",\n \"description\": \"Solomon Islands\"\n },\n {\n \"name\": \"SC\",\n \"description\": \"Seychelles\"\n },\n {\n \"name\": \"SD\",\n \"description\": \"Sudan\"\n },\n {\n \"name\": \"SE\",\n \"description\": \"Sweden\"\n },\n {\n \"name\": \"SG\",\n \"description\": \"Singapore\"\n },\n {\n \"name\": \"SH\",\n \"description\": \"Saint Helena, Ascension and Tristan da Cunha\"\n },\n {\n \"name\": \"SI\",\n \"description\": \"Slovenia\"\n },\n {\n \"name\": \"SJ\",\n \"description\": \"Svalbard and Jan Mayen\"\n },\n {\n \"name\": \"SK\",\n \"description\": \"Slovakia\"\n },\n {\n \"name\": \"SL\",\n \"description\": \"Sierra Leone\"\n },\n {\n \"name\": \"SM\",\n \"description\": \"San Marino\"\n },\n {\n \"name\": \"SN\",\n \"description\": \"Senegal\"\n },\n {\n \"name\": \"SO\",\n \"description\": \"Somalia\"\n },\n {\n \"name\": \"SR\",\n \"description\": \"Suriname\"\n },\n {\n \"name\": \"SS\",\n \"description\": \"South Sudan\"\n },\n {\n \"name\": \"ST\",\n \"description\": \"Sao Tome and Principe\"\n },\n {\n \"name\": \"SV\",\n \"description\": \"El Salvador\"\n },\n {\n \"name\": \"SX\",\n \"description\": \"Sint Maarten\"\n },\n {\n \"name\": \"SY\",\n \"description\": \"Syrian Arab Republic\"\n },\n {\n \"name\": \"SZ\",\n \"description\": \"Eswatini\"\n },\n {\n \"name\": \"TC\",\n \"description\": \"Turks and Caicos Islands\"\n },\n {\n \"name\": \"TD\",\n \"description\": \"Chad\"\n },\n {\n \"name\": \"TF\",\n \"description\": \"French Southern Territories\"\n },\n {\n \"name\": \"TG\",\n \"description\": \"Togo\"\n },\n {\n \"name\": \"TH\",\n \"description\": \"Thailand\"\n },\n {\n \"name\": \"TJ\",\n \"description\": \"Tajikistan\"\n },\n {\n \"name\": \"TK\",\n \"description\": \"Tokelau\"\n },\n {\n \"name\": \"TL\",\n \"description\": \"Timor-Leste\"\n },\n {\n \"name\": \"TM\",\n \"description\": \"Turkmenistan\"\n },\n {\n \"name\": \"TN\",\n \"description\": \"Tunisia\"\n },\n {\n \"name\": \"TO\",\n \"description\": \"Tonga\"\n },\n {\n \"name\": \"TR\",\n \"description\": \"Turkey\"\n },\n {\n \"name\": \"TT\",\n \"description\": \"Trinidad and Tobago\"\n },\n {\n \"name\": \"TV\",\n \"description\": \"Tuvalu\"\n },\n {\n \"name\": \"TW\",\n \"description\": \"Taiwan\"\n },\n {\n \"name\": \"TZ\",\n \"description\": \"Tanzania\"\n },\n {\n \"name\": \"UA\",\n \"description\": \"Ukraine\"\n },\n {\n \"name\": \"UG\",\n \"description\": \"Uganda\"\n },\n {\n \"name\": \"UM\",\n \"description\": \"United States Minor Outlying Islands\"\n },\n {\n \"name\": \"US\",\n \"description\": \"United States of America\"\n },\n {\n \"name\": \"UY\",\n \"description\": \"Uruguay\"\n },\n {\n \"name\": \"UZ\",\n \"description\": \"Uzbekistan\"\n },\n {\n \"name\": \"VA\",\n \"description\": \"Vatican City\"\n },\n {\n \"name\": \"VC\",\n \"description\": \"Saint Vincent and the Grenadines\"\n },\n {\n \"name\": \"VE\",\n \"description\": \"Venezuela\"\n },\n {\n \"name\": \"VG\",\n \"description\": \"British Virgin Islands\"\n },\n {\n \"name\": \"VI\",\n \"description\": \"U.S. Virgin Islands\"\n },\n {\n \"name\": \"VN\",\n \"description\": \"Vietnam\"\n },\n {\n \"name\": \"VU\",\n \"description\": \"Vanuatu\"\n },\n {\n \"name\": \"WF\",\n \"description\": \"Wallis and Futuna\"\n },\n {\n \"name\": \"WS\",\n \"description\": \"Samoa\"\n },\n {\n \"name\": \"YE\",\n \"description\": \"Yemen\"\n },\n {\n \"name\": \"YT\",\n \"description\": \"Mayotte\"\n },\n {\n \"name\": \"ZA\",\n \"description\": \"South Africa\"\n },\n {\n \"name\": \"ZM\",\n \"description\": \"Zambia\"\n },\n {\n \"name\": \"ZW\",\n \"description\": \"Zimbabwe\"\n }\n ],\n \"description\": \"Indicates the country associated with another entity, such as a business.\\nValues are in [ISO 3166-1-alpha-2 format](http://www.iso.org/iso/home/standards/country_codes.htm).\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"first_name\": {\n \"type\": \"string\",\n \"description\": \"Optional first name when it's representing recipient.\",\n \"nullable\": true\n },\n \"last_name\": {\n \"type\": \"string\",\n \"description\": \"Optional last name when it's representing recipient.\",\n \"nullable\": true\n }\n }\n },\n \"note\": {\n \"type\": \"string\",\n \"description\": \"An optional note to include when creating a payment.\",\n \"maxLength\": 500,\n \"readOnly\": true\n },\n \"statement_description_identifier\": {\n \"type\": \"string\",\n \"description\": \"Additional payment information that gets added to the customer's card statement\\nas part of the statement description.\\n\\nNote that the `statement_description_identifier` might get truncated on the statement description\\nto fit the required information including the Square identifier (SQ *) and the name of the\\nseller taking the payment.\",\n \"readOnly\": true\n },\n \"capabilities\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Actions that can be performed on this payment:\\n- `EDIT_AMOUNT_UP` - The payment amount can be edited up.\\n- `EDIT_AMOUNT_DOWN` - The payment amount can be edited down.\\n- `EDIT_TIP_AMOUNT_UP` - The tip amount can be edited up.\\n- `EDIT_TIP_AMOUNT_DOWN` - The tip amount can be edited down.\\n- `EDIT_DELAY_ACTION` - The delay_action can be edited.\",\n \"readOnly\": true\n },\n \"receipt_number\": {\n \"type\": \"string\",\n \"description\": \"The payment's receipt number.\\nThe field is missing if a payment is canceled.\",\n \"maxLength\": 4,\n \"readOnly\": true\n },\n \"receipt_url\": {\n \"type\": \"string\",\n \"description\": \"The URL for the payment's receipt.\\nThe field is only populated for COMPLETED payments.\",\n \"maxLength\": 255,\n \"readOnly\": true\n },\n \"device_details\": {\n \"type\": \"object\",\n \"description\": \"Details about the device that took the payment.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"device_id\": {\n \"type\": \"string\",\n \"description\": \"The Square-issued ID of the device.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"device_installation_id\": {\n \"type\": \"string\",\n \"description\": \"The Square-issued installation ID for the device.\",\n \"maxLength\": 255,\n \"nullable\": true\n },\n \"device_name\": {\n \"type\": \"string\",\n \"description\": \"The name of the device set by the seller.\",\n \"maxLength\": 255,\n \"nullable\": true\n }\n }\n },\n \"application_details\": {\n \"type\": \"object\",\n \"description\": \"Details about the application that took the payment.\",\n \"x-release-status\": \"PUBLIC\",\n \"properties\": {\n \"square_product\": {\n \"type\": \"string\",\n \"enum\": [\n \"APPOINTMENTS\",\n \"ECOMMERCE_API\",\n \"INVOICES\",\n \"ONLINE_STORE\",\n \"OTHER\",\n \"RESTAURANTS\",\n \"RETAIL\",\n \"SQUARE_POS\",\n \"TERMINAL_API\",\n \"VIRTUAL_TERMINAL\"\n ],\n \"x-enum-elements\": [\n {\n \"name\": \"APPOINTMENTS\",\n \"description\": \"\"\n },\n {\n \"name\": \"ECOMMERCE_API\",\n \"description\": \"\"\n },\n {\n \"name\": \"INVOICES\",\n \"description\": \"\"\n },\n {\n \"name\": \"ONLINE_STORE\",\n \"description\": \"\"\n },\n {\n \"name\": \"OTHER\",\n \"description\": \"\"\n },\n {\n \"name\": \"RESTAURANTS\",\n \"description\": \"\"\n },\n {\n \"name\": \"RETAIL\",\n \"description\": \"\"\n },\n {\n \"name\": \"SQUARE_POS\",\n \"description\": \"\"\n },\n {\n \"name\": \"TERMINAL_API\",\n \"description\": \"\"\n },\n {\n \"name\": \"VIRTUAL_TERMINAL\",\n \"description\": \"\"\n }\n ],\n \"description\": \"A list of products to return to external callers.\",\n \"x-release-status\": \"PUBLIC\"\n },\n \"application_id\": {\n \"type\": \"string\",\n \"description\": \"The Square ID assigned to the application used to take the payment. \\nApplication developers can use this information to identify payments that \\ntheir application processed. \\nFor example, if a developer uses a custom application to process payments, \\nthis field contains the application ID from the Developer Dashboard. \\nIf a seller uses a [Square App Marketplace](https://developer.squareup.com/docs/app-marketplace) \\napplication to process payments, the field contains the corresponding application ID.\",\n \"nullable\": true\n }\n }\n },\n \"is_offline_payment\": {\n \"type\": \"boolean\",\n \"description\": \"Whether or not this payment was taken offline.\",\n \"readOnly\": true\n },\n \"offline_payment_details\": {\n \"type\": \"object\",\n \"description\": \"Details specific to offline payments.\",\n \"x-release-status\": \"DEPRECATED\",\n \"properties\": {\n \"client_created_at\": {\n \"type\": \"string\",\n \"description\": \"The client-side timestamp of when the offline payment was created, in RFC 3339 format.\",\n \"maxLength\": 32,\n \"readOnly\": true\n }\n }\n },\n \"version_token\": {\n \"type\": \"string\",\n \"description\": \"Used for optimistic concurrency. This opaque token identifies a specific version of the\\n`Payment` object.\",\n \"nullable\": true\n }\n }\n },\n \"idempotency_key\": {\n \"type\": \"string\",\n \"description\": \"A unique string that identifies this `UpdatePayment` request. Keys can be any valid string\\nbut must be unique for every `UpdatePayment` request.\\n\\nFor more information, see [Idempotency](https://developer.squareup.com/docs/build-basics/common-api-patterns/idempotency).\",\n \"minLength\": 1,\n \"maxLength\": 45\n }\n },\n \"example\": {\n \"idempotency_key\": \"956f8b13-e4ec-45d6-85e8-d1d95ef0c5de\",\n \"payment\": {\n \"amount_money\": {\n \"amount\": 1000,\n \"currency\": \"USD\"\n },\n \"tip_money\": {\n \"amount\": 100,\n \"currency\": \"USD\"\n },\n \"version_token\": \"ODhwVQ35xwlzRuoZEwKXucfu7583sPTzK48c5zoGd0g6o\"\n }\n }\n }\n }\n }\n}",
|
|
"use_request_body_schema_mode": true,
|
|
"validate_request_body_schema": true
|
|
}
|
|
}
|