AptlyStar

Square

Process payments and manage Square commerce data

Nutzungsanweisungen

Integrate Square into the workflow. Take and refund payments, manage customers, build catalog items and images, create and search orders, and issue invoices. Authenticate with a Square access token (personal access token).

Tools

square_create_payment

Take a payment using a payment source such as a card nonce or a card on file

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
sourceIdstringJaID of the payment source (card nonce, card-on-file ID, or wallet token)
amountnumberJaAmount in the smallest currency denomination (e.g. 1000 = $10.00)
currencystringJaThree-letter ISO 4217 currency code (e.g. USD)
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)
customerIdstringNeinID of the customer associated with the payment
locationIdstringNeinID of the location where the payment is taken (defaults to the main location)
orderIdstringNeinID of the order associated with the payment
referenceIdstringNeinOptional external reference for the payment
notestringNeinOptional note attached to the payment
autocompletebooleanNeinWhether to immediately capture the payment (defaults to true)

Ausgabe

ParameterTypBeschreibung
paymentobjectThe created payment object
↳ idstringUnique ID for the payment
↳ statusstringPayment status (APPROVED, PENDING, COMPLETED, CANCELED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ approved_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ app_fee_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ refunded_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ source_typestringSource of the payment (CARD, BANK_ACCOUNT, WALLET, etc.)
↳ card_detailsjsonDetails about a card payment
↳ location_idstringID of the location where the payment was taken
↳ order_idstringID of the associated order
↳ customer_idstringID of the associated customer
↳ reference_idstringOptional external reference for the payment
↳ receipt_numberstringReceipt number for the payment
↳ receipt_urlstringURL of the payment receipt
↳ notestringOptional note attached to the payment
↳ refund_idsarrayIDs of refunds associated with the payment
↳ processing_feearrayProcessing fees applied to the payment
↳ created_atstringTimestamp when the payment was created (RFC 3339)
↳ updated_atstringTimestamp when the payment was last updated (RFC 3339)
↳ version_tokenstringOptimistic concurrency token for the payment
metadatajsonPayment summary metadata
↳ idstringSquare payment ID
↳ statusstringCurrent payment status
↳ order_idstringAssociated order ID

square_get_payment

Retrieve details for a single payment by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
paymentIdstringJaID of the payment to retrieve

Ausgabe

ParameterTypBeschreibung
paymentobjectThe retrieved payment object
↳ idstringUnique ID for the payment
↳ statusstringPayment status (APPROVED, PENDING, COMPLETED, CANCELED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ approved_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ app_fee_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ refunded_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ source_typestringSource of the payment (CARD, BANK_ACCOUNT, WALLET, etc.)
↳ card_detailsjsonDetails about a card payment
↳ location_idstringID of the location where the payment was taken
↳ order_idstringID of the associated order
↳ customer_idstringID of the associated customer
↳ reference_idstringOptional external reference for the payment
↳ receipt_numberstringReceipt number for the payment
↳ receipt_urlstringURL of the payment receipt
↳ notestringOptional note attached to the payment
↳ refund_idsarrayIDs of refunds associated with the payment
↳ processing_feearrayProcessing fees applied to the payment
↳ created_atstringTimestamp when the payment was created (RFC 3339)
↳ updated_atstringTimestamp when the payment was last updated (RFC 3339)
↳ version_tokenstringOptimistic concurrency token for the payment
metadatajsonPayment summary metadata
↳ idstringSquare payment ID
↳ statusstringCurrent payment status
↳ order_idstringAssociated order ID

square_list_payments

List payments taken by the account, optionally filtered by location and time range

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdstringNeinFilter payments by location ID
beginTimestringNeinRFC 3339 timestamp for the beginning of the reporting period
endTimestringNeinRFC 3339 timestamp for the end of the reporting period
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
paymentsarrayArray of payment objects
↳ idstringUnique ID for the payment
↳ statusstringPayment status (APPROVED, PENDING, COMPLETED, CANCELED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ approved_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ app_fee_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ refunded_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ source_typestringSource of the payment (CARD, BANK_ACCOUNT, WALLET, etc.)
↳ card_detailsjsonDetails about a card payment
↳ location_idstringID of the location where the payment was taken
↳ order_idstringID of the associated order
↳ customer_idstringID of the associated customer
↳ reference_idstringOptional external reference for the payment
↳ receipt_numberstringReceipt number for the payment
↳ receipt_urlstringURL of the payment receipt
↳ notestringOptional note attached to the payment
↳ refund_idsarrayIDs of refunds associated with the payment
↳ processing_feearrayProcessing fees applied to the payment
↳ created_atstringTimestamp when the payment was created (RFC 3339)
↳ updated_atstringTimestamp when the payment was last updated (RFC 3339)
↳ version_tokenstringOptimistic concurrency token for the payment
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_cancel_payment

Cancel (void) an authorized payment that has not been captured

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
paymentIdstringJaID of the payment to cancel

Ausgabe

ParameterTypBeschreibung
paymentobjectThe canceled payment object
↳ idstringUnique ID for the payment
↳ statusstringPayment status (APPROVED, PENDING, COMPLETED, CANCELED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ approved_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ app_fee_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ refunded_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ source_typestringSource of the payment (CARD, BANK_ACCOUNT, WALLET, etc.)
↳ card_detailsjsonDetails about a card payment
↳ location_idstringID of the location where the payment was taken
↳ order_idstringID of the associated order
↳ customer_idstringID of the associated customer
↳ reference_idstringOptional external reference for the payment
↳ receipt_numberstringReceipt number for the payment
↳ receipt_urlstringURL of the payment receipt
↳ notestringOptional note attached to the payment
↳ refund_idsarrayIDs of refunds associated with the payment
↳ processing_feearrayProcessing fees applied to the payment
↳ created_atstringTimestamp when the payment was created (RFC 3339)
↳ updated_atstringTimestamp when the payment was last updated (RFC 3339)
↳ version_tokenstringOptimistic concurrency token for the payment
metadatajsonPayment summary metadata
↳ idstringSquare payment ID
↳ statusstringCurrent payment status
↳ order_idstringAssociated order ID

square_complete_payment

Capture (complete) a payment that was authorized with delayed capture

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
paymentIdstringJaID of the payment to complete
versionTokenstringNeinOptional version token for optimistic concurrency control

Ausgabe

ParameterTypBeschreibung
paymentobjectThe completed payment object
↳ idstringUnique ID for the payment
↳ statusstringPayment status (APPROVED, PENDING, COMPLETED, CANCELED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ approved_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ app_fee_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ refunded_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ source_typestringSource of the payment (CARD, BANK_ACCOUNT, WALLET, etc.)
↳ card_detailsjsonDetails about a card payment
↳ location_idstringID of the location where the payment was taken
↳ order_idstringID of the associated order
↳ customer_idstringID of the associated customer
↳ reference_idstringOptional external reference for the payment
↳ receipt_numberstringReceipt number for the payment
↳ receipt_urlstringURL of the payment receipt
↳ notestringOptional note attached to the payment
↳ refund_idsarrayIDs of refunds associated with the payment
↳ processing_feearrayProcessing fees applied to the payment
↳ created_atstringTimestamp when the payment was created (RFC 3339)
↳ updated_atstringTimestamp when the payment was last updated (RFC 3339)
↳ version_tokenstringOptimistic concurrency token for the payment
metadatajsonPayment summary metadata
↳ idstringSquare payment ID
↳ statusstringCurrent payment status
↳ order_idstringAssociated order ID

square_refund_payment

Refund all or part of a completed payment

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
paymentIdstringJaID of the payment to refund
amountnumberJaAmount to refund in the smallest currency denomination (e.g. 100 = $1.00)
currencystringJaThree-letter ISO 4217 currency code (e.g. USD)
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)
reasonstringNeinReason for the refund

Ausgabe

ParameterTypBeschreibung
refundobjectThe created refund object
↳ idstringUnique ID for the refund
↳ statusstringRefund status (PENDING, COMPLETED, REJECTED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ processing_feearrayProcessing fees refunded
↳ payment_idstringID of the payment being refunded
↳ order_idstringID of the associated order
↳ location_idstringID of the associated location
↳ reasonstringReason for the refund
↳ created_atstringTimestamp when the refund was created (RFC 3339)
↳ updated_atstringTimestamp when the refund was last updated (RFC 3339)
metadatajsonRefund summary metadata
↳ idstringSquare refund ID
↳ statusstringCurrent refund status
↳ payment_idstringRefunded payment ID

square_get_refund

Retrieve a single payment refund by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
refundIdstringJaID of the refund to retrieve

Ausgabe

ParameterTypBeschreibung
refundobjectThe retrieved refund object
↳ idstringUnique ID for the refund
↳ statusstringRefund status (PENDING, COMPLETED, REJECTED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ processing_feearrayProcessing fees refunded
↳ payment_idstringID of the payment being refunded
↳ order_idstringID of the associated order
↳ location_idstringID of the associated location
↳ reasonstringReason for the refund
↳ created_atstringTimestamp when the refund was created (RFC 3339)
↳ updated_atstringTimestamp when the refund was last updated (RFC 3339)
metadatajsonRefund summary metadata
↳ idstringSquare refund ID
↳ statusstringCurrent refund status
↳ payment_idstringRefunded payment ID

square_list_refunds

List payment refunds, optionally filtered by location, status, and time range

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdstringNeinFilter refunds by location ID
statusstringNeinFilter by refund status (PENDING, COMPLETED, REJECTED, or FAILED)
beginTimestringNeinRFC 3339 timestamp for the beginning of the reporting period
endTimestringNeinRFC 3339 timestamp for the end of the reporting period
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
refundsarrayArray of refund objects
↳ idstringUnique ID for the refund
↳ statusstringRefund status (PENDING, COMPLETED, REJECTED, or FAILED)
↳ amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ processing_feearrayProcessing fees refunded
↳ payment_idstringID of the payment being refunded
↳ order_idstringID of the associated order
↳ location_idstringID of the associated location
↳ reasonstringReason for the refund
↳ created_atstringTimestamp when the refund was created (RFC 3339)
↳ updated_atstringTimestamp when the refund was last updated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_create_customer

Create a new customer profile in the Square customer directory

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
givenNamestringNeinFirst name of the customer
familyNamestringNeinLast name of the customer
companyNamestringNeinBusiness name of the customer
nicknamestringNeinNickname of the customer
emailAddressstringNeinEmail address of the customer
phoneNumberstringNeinPhone number of the customer
birthdaystringNeinBirthday in YYYY-MM-DD or MM-DD format
notestringNeinNote about the customer
referenceIdstringNeinOptional external reference for the customer
addressjsonNeinSquare address object for the customer
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
customerobjectThe created customer object
↳ idstringUnique ID for the customer
↳ given_namestringFirst name of the customer
↳ family_namestringLast name of the customer
↳ nicknamestringNickname of the customer
↳ company_namestringBusiness name of the customer
↳ email_addressstringEmail address of the customer
↳ phone_numberstringPhone number of the customer
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ birthdaystringBirthday in YYYY-MM-DD or MM-DD format
↳ reference_idstringOptional external reference for the customer
↳ notestringNote about the customer
↳ creation_sourcestringHow the customer profile was created
↳ preferencesjsonCustomer communication preferences
↳ group_idsarrayIDs of customer groups the customer belongs to
↳ segment_idsarrayIDs of customer segments the customer belongs to
↳ versionnumberOptimistic concurrency version of the customer
↳ created_atstringTimestamp when the customer was created (RFC 3339)
↳ updated_atstringTimestamp when the customer was last updated (RFC 3339)
metadatajsonCustomer summary metadata
↳ idstringSquare customer ID
↳ email_addressstringCustomer email address
↳ given_namestringCustomer first name
↳ family_namestringCustomer last name

square_get_customer

Retrieve a single customer profile by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
customerIdstringJaID of the customer to retrieve

Ausgabe

ParameterTypBeschreibung
customerobjectThe retrieved customer object
↳ idstringUnique ID for the customer
↳ given_namestringFirst name of the customer
↳ family_namestringLast name of the customer
↳ nicknamestringNickname of the customer
↳ company_namestringBusiness name of the customer
↳ email_addressstringEmail address of the customer
↳ phone_numberstringPhone number of the customer
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ birthdaystringBirthday in YYYY-MM-DD or MM-DD format
↳ reference_idstringOptional external reference for the customer
↳ notestringNote about the customer
↳ creation_sourcestringHow the customer profile was created
↳ preferencesjsonCustomer communication preferences
↳ group_idsarrayIDs of customer groups the customer belongs to
↳ segment_idsarrayIDs of customer segments the customer belongs to
↳ versionnumberOptimistic concurrency version of the customer
↳ created_atstringTimestamp when the customer was created (RFC 3339)
↳ updated_atstringTimestamp when the customer was last updated (RFC 3339)
metadatajsonCustomer summary metadata
↳ idstringSquare customer ID
↳ email_addressstringCustomer email address
↳ given_namestringCustomer first name
↳ family_namestringCustomer last name

square_list_customers

List customer profiles in the Square customer directory

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
limitnumberNeinMaximum number of results to return per page (max 100)
cursorstringNeinPagination cursor from a previous response
sortFieldstringNeinField to sort by (DEFAULT or CREATED_AT)
sortOrderstringNeinSort order (ASC or DESC)

Ausgabe

ParameterTypBeschreibung
customersarrayArray of customer objects
↳ idstringUnique ID for the customer
↳ given_namestringFirst name of the customer
↳ family_namestringLast name of the customer
↳ nicknamestringNickname of the customer
↳ company_namestringBusiness name of the customer
↳ email_addressstringEmail address of the customer
↳ phone_numberstringPhone number of the customer
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ birthdaystringBirthday in YYYY-MM-DD or MM-DD format
↳ reference_idstringOptional external reference for the customer
↳ notestringNote about the customer
↳ creation_sourcestringHow the customer profile was created
↳ preferencesjsonCustomer communication preferences
↳ group_idsarrayIDs of customer groups the customer belongs to
↳ segment_idsarrayIDs of customer segments the customer belongs to
↳ versionnumberOptimistic concurrency version of the customer
↳ created_atstringTimestamp when the customer was created (RFC 3339)
↳ updated_atstringTimestamp when the customer was last updated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_search_customers

Search customer profiles using filters such as email, phone, or creation date

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
queryjsonNeinSquare customer query object with optional filter and sort (e.g. {"filter":{"email_address":{"exact":"a@b.com"}}})
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
customersarrayArray of matching customer objects
↳ idstringUnique ID for the customer
↳ given_namestringFirst name of the customer
↳ family_namestringLast name of the customer
↳ nicknamestringNickname of the customer
↳ company_namestringBusiness name of the customer
↳ email_addressstringEmail address of the customer
↳ phone_numberstringPhone number of the customer
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ birthdaystringBirthday in YYYY-MM-DD or MM-DD format
↳ reference_idstringOptional external reference for the customer
↳ notestringNote about the customer
↳ creation_sourcestringHow the customer profile was created
↳ preferencesjsonCustomer communication preferences
↳ group_idsarrayIDs of customer groups the customer belongs to
↳ segment_idsarrayIDs of customer segments the customer belongs to
↳ versionnumberOptimistic concurrency version of the customer
↳ created_atstringTimestamp when the customer was created (RFC 3339)
↳ updated_atstringTimestamp when the customer was last updated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_update_customer

Update fields on an existing customer profile

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
customerIdstringJaID of the customer to update
givenNamestringNeinFirst name of the customer
familyNamestringNeinLast name of the customer
companyNamestringNeinBusiness name of the customer
nicknamestringNeinNickname of the customer
emailAddressstringNeinEmail address of the customer
phoneNumberstringNeinPhone number of the customer
birthdaystringNeinBirthday in YYYY-MM-DD or MM-DD format
notestringNeinNote about the customer
referenceIdstringNeinOptional external reference for the customer
addressjsonNeinSquare address object for the customer

Ausgabe

ParameterTypBeschreibung
customerobjectThe updated customer object
↳ idstringUnique ID for the customer
↳ given_namestringFirst name of the customer
↳ family_namestringLast name of the customer
↳ nicknamestringNickname of the customer
↳ company_namestringBusiness name of the customer
↳ email_addressstringEmail address of the customer
↳ phone_numberstringPhone number of the customer
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ birthdaystringBirthday in YYYY-MM-DD or MM-DD format
↳ reference_idstringOptional external reference for the customer
↳ notestringNote about the customer
↳ creation_sourcestringHow the customer profile was created
↳ preferencesjsonCustomer communication preferences
↳ group_idsarrayIDs of customer groups the customer belongs to
↳ segment_idsarrayIDs of customer segments the customer belongs to
↳ versionnumberOptimistic concurrency version of the customer
↳ created_atstringTimestamp when the customer was created (RFC 3339)
↳ updated_atstringTimestamp when the customer was last updated (RFC 3339)
metadatajsonCustomer summary metadata
↳ idstringSquare customer ID
↳ email_addressstringCustomer email address
↳ given_namestringCustomer first name
↳ family_namestringCustomer last name

square_delete_customer

Delete a customer profile from the Square customer directory

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
customerIdstringJaID of the customer to delete

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the customer was deleted
idstringID of the deleted customer

square_list_locations

List all locations associated with the Square account

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)

Ausgabe

ParameterTypBeschreibung
locationsarrayArray of location objects
↳ idstringUnique ID for the location
↳ namestringName of the location
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ timezonestringIANA timezone of the location
↳ statusstringLocation status (ACTIVE or INACTIVE)
↳ typestringLocation type (PHYSICAL or MOBILE)
↳ merchant_idstringID of the merchant that owns the location
↳ countrystringCountry code of the location
↳ language_codestringLanguage code of the location
↳ currencystringCurrency used by the location
↳ phone_numberstringPhone number of the location
↳ business_namestringBusiness name shown to customers
↳ business_emailstringEmail of the business
↳ descriptionstringDescription of the location
↳ capabilitiesarrayCapabilities of the location (e.g. CREDIT_CARD_PROCESSING)
↳ created_atstringTimestamp when the location was created (RFC 3339)
metadatajsonList metadata
↳ countnumberNumber of locations returned

square_get_location

Retrieve a single location by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdstringJaID of the location to retrieve (use "main" for the main location)

Ausgabe

ParameterTypBeschreibung
locationobjectThe retrieved location object
↳ idstringUnique ID for the location
↳ namestringName of the location
↳ addressobjectPhysical address
↳ address_line_1stringFirst line of the address
↳ address_line_2stringSecond line of the address
↳ address_line_3stringThird line of the address
↳ localitystringCity or town
↳ sublocalitystringNeighborhood or district
↳ administrative_district_level_1stringState, province, or region
↳ postal_codestringPostal or ZIP code
↳ countrystringTwo-letter ISO 3166-1 alpha-2 country code
↳ first_namestringFirst name of the addressee
↳ last_namestringLast name of the addressee
↳ timezonestringIANA timezone of the location
↳ statusstringLocation status (ACTIVE or INACTIVE)
↳ typestringLocation type (PHYSICAL or MOBILE)
↳ merchant_idstringID of the merchant that owns the location
↳ countrystringCountry code of the location
↳ language_codestringLanguage code of the location
↳ currencystringCurrency used by the location
↳ phone_numberstringPhone number of the location
↳ business_namestringBusiness name shown to customers
↳ business_emailstringEmail of the business
↳ descriptionstringDescription of the location
↳ capabilitiesarrayCapabilities of the location (e.g. CREDIT_CARD_PROCESSING)
↳ created_atstringTimestamp when the location was created (RFC 3339)
metadatajsonLocation summary metadata
↳ idstringSquare location ID
↳ namestringLocation name

square_create_order

Create an order with line items, taxes, discounts, and fulfillments

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
orderjsonJaSquare order object including location_id and line_items (e.g. {"location_id":"L1","line_items":[{"name":"Coffee","quantity":"1","base_price_money":{"amount":250,"currency":"USD"}}]})
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
orderobjectThe created order object
↳ idstringUnique ID for the order
↳ location_idstringID of the location for the order
↳ reference_idstringOptional external reference for the order
↳ customer_idstringID of the associated customer
↳ statestringOrder state (OPEN, COMPLETED, or CANCELED)
↳ versionnumberOptimistic concurrency version of the order
↳ line_itemsarrayLine items in the order
↳ taxesarrayTaxes applied to the order
↳ discountsarrayDiscounts applied to the order
↳ fulfillmentsarrayFulfillments for the order
↳ net_amountsjsonNet money amounts for the order
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tax_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_discount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_service_charge_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ created_atstringTimestamp when the order was created (RFC 3339)
↳ updated_atstringTimestamp when the order was last updated (RFC 3339)
↳ closed_atstringTimestamp when the order was closed (RFC 3339)
metadatajsonOrder summary metadata
↳ idstringSquare order ID
↳ statestringCurrent order state
↳ location_idstringOrder location ID

square_get_order

Retrieve a single order by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
orderIdstringJaID of the order to retrieve

Ausgabe

ParameterTypBeschreibung
orderobjectThe retrieved order object
↳ idstringUnique ID for the order
↳ location_idstringID of the location for the order
↳ reference_idstringOptional external reference for the order
↳ customer_idstringID of the associated customer
↳ statestringOrder state (OPEN, COMPLETED, or CANCELED)
↳ versionnumberOptimistic concurrency version of the order
↳ line_itemsarrayLine items in the order
↳ taxesarrayTaxes applied to the order
↳ discountsarrayDiscounts applied to the order
↳ fulfillmentsarrayFulfillments for the order
↳ net_amountsjsonNet money amounts for the order
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tax_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_discount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_service_charge_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ created_atstringTimestamp when the order was created (RFC 3339)
↳ updated_atstringTimestamp when the order was last updated (RFC 3339)
↳ closed_atstringTimestamp when the order was closed (RFC 3339)
metadatajsonOrder summary metadata
↳ idstringSquare order ID
↳ statestringCurrent order state
↳ location_idstringOrder location ID

square_search_orders

Search orders across one or more locations using filters and sorting

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdsarrayJaArray of location IDs to search within
queryjsonNeinSquare order query object with optional filter and sort (e.g. {"filter":{"state_filter":{"states":["OPEN"]}}})
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
ordersarrayArray of matching order objects
↳ idstringUnique ID for the order
↳ location_idstringID of the location for the order
↳ reference_idstringOptional external reference for the order
↳ customer_idstringID of the associated customer
↳ statestringOrder state (OPEN, COMPLETED, or CANCELED)
↳ versionnumberOptimistic concurrency version of the order
↳ line_itemsarrayLine items in the order
↳ taxesarrayTaxes applied to the order
↳ discountsarrayDiscounts applied to the order
↳ fulfillmentsarrayFulfillments for the order
↳ net_amountsjsonNet money amounts for the order
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tax_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_discount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_service_charge_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ created_atstringTimestamp when the order was created (RFC 3339)
↳ updated_atstringTimestamp when the order was last updated (RFC 3339)
↳ closed_atstringTimestamp when the order was closed (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_pay_order

Pay for an order using one or more already-approved payments

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
orderIdstringJaID of the order to pay for
paymentIdsarrayNeinIDs of approved payments to apply to the order
orderVersionnumberNeinVersion of the order being paid (for optimistic concurrency)
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
orderobjectThe paid order object
↳ idstringUnique ID for the order
↳ location_idstringID of the location for the order
↳ reference_idstringOptional external reference for the order
↳ customer_idstringID of the associated customer
↳ statestringOrder state (OPEN, COMPLETED, or CANCELED)
↳ versionnumberOptimistic concurrency version of the order
↳ line_itemsarrayLine items in the order
↳ taxesarrayTaxes applied to the order
↳ discountsarrayDiscounts applied to the order
↳ fulfillmentsarrayFulfillments for the order
↳ net_amountsjsonNet money amounts for the order
↳ total_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tax_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_discount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_service_charge_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ total_tip_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ created_atstringTimestamp when the order was created (RFC 3339)
↳ updated_atstringTimestamp when the order was last updated (RFC 3339)
↳ closed_atstringTimestamp when the order was closed (RFC 3339)
metadatajsonOrder summary metadata
↳ idstringSquare order ID
↳ statestringCurrent order state
↳ location_idstringOrder location ID

square_create_invoice

Create a draft invoice for an existing order and customer

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
invoicejsonJaSquare invoice object including location_id, order_id, primary_recipient, and payment_requests (e.g. {"location_id":"L1","order_id":"O1","primary_recipient":{"customer_id":"C1"},"payment_requests":[{"request_type":"BALANCE","due_date":"2026-07-01"}]})
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
invoiceobjectThe created invoice object
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonInvoice summary metadata
↳ idstringSquare invoice ID
↳ statusstringCurrent invoice status
↳ versionnumberInvoice version

square_get_invoice

Retrieve a single invoice by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
invoiceIdstringJaID of the invoice to retrieve

Ausgabe

ParameterTypBeschreibung
invoiceobjectThe retrieved invoice object
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonInvoice summary metadata
↳ idstringSquare invoice ID
↳ statusstringCurrent invoice status
↳ versionnumberInvoice version

square_list_invoices

List invoices for a specific location

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdstringJaID of the location to list invoices for
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
invoicesarrayArray of invoice objects
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_search_invoices

Search invoices across one or more locations

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
locationIdstringJaID of the location to search within (Square allows one location per search)
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
invoicesarrayArray of matching invoice objects
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_publish_invoice

Publish a draft invoice so it is sent to the customer and becomes payable

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
invoiceIdstringJaID of the invoice to publish
versionnumberJaCurrent version of the invoice (use the version returned by Create Invoice)
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
invoiceobjectThe published invoice object
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonInvoice summary metadata
↳ idstringSquare invoice ID
↳ statusstringCurrent invoice status
↳ versionnumberInvoice version

square_cancel_invoice

Cancel a published invoice that is unpaid or partially paid

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
invoiceIdstringJaID of the invoice to cancel
versionnumberJaCurrent version of the invoice

Ausgabe

ParameterTypBeschreibung
invoiceobjectThe canceled invoice object
↳ idstringUnique ID for the invoice
↳ versionnumberOptimistic concurrency version of the invoice
↳ location_idstringID of the location for the invoice
↳ order_idstringID of the order the invoice bills for
↳ statusstringInvoice status (DRAFT, UNPAID, SCHEDULED, PARTIALLY_PAID, PAID, etc.)
↳ invoice_numberstringHuman-readable invoice number
↳ titlestringTitle of the invoice
↳ descriptionstringDescription of the invoice
↳ public_urlstringURL where the customer can view and pay the invoice
↳ primary_recipientjsonPrimary recipient of the invoice
↳ payment_requestsarrayPayment requests for the invoice
↳ next_payment_amount_moneyobjectMonetary amount with a currency
↳ amountnumberAmount in the smallest denomination of the currency (e.g. cents for USD)
↳ currencystringThree-letter ISO 4217 currency code (e.g. USD)
↳ scheduled_atstringTimestamp when the invoice is scheduled to be sent (RFC 3339)
↳ timezonestringTimezone used for invoice dates
↳ delivery_methodstringHow the invoice is delivered (EMAIL, SHARE_MANUALLY, SMS)
↳ created_atstringTimestamp when the invoice was created (RFC 3339)
↳ updated_atstringTimestamp when the invoice was last updated (RFC 3339)
metadatajsonInvoice summary metadata
↳ idstringSquare invoice ID
↳ statusstringCurrent invoice status
↳ versionnumberInvoice version

square_delete_invoice

Delete a draft invoice

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
invoiceIdstringJaID of the draft invoice to delete
versionnumberNeinCurrent version of the invoice (required if the invoice has been updated)

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the invoice was deleted
idstringID of the deleted invoice

square_upsert_catalog_object

Create or update a catalog object such as an item, variation, or category

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
objectjsonJaSquare catalog object to create or update. Use ID "#name" for new objects (e.g. {"type":"ITEM","id":"#Coffee","item_data":{"name":"Coffee"}})
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
objectobjectThe created or updated catalog object
↳ typestringType of catalog object (ITEM, ITEM_VARIATION, CATEGORY, IMAGE, etc.)
↳ idstringUnique ID for the catalog object
↳ versionnumberOptimistic concurrency version of the object
↳ updated_atstringTimestamp when the object was last updated (RFC 3339)
↳ is_deletedbooleanWhether the object is deleted
↳ present_at_all_locationsbooleanWhether the object is present at all locations
↳ item_datajsonItem-specific data (when type is ITEM)
↳ item_variation_datajsonVariation-specific data (when type is ITEM_VARIATION)
↳ category_datajsonCategory-specific data (when type is CATEGORY)
↳ image_datajsonImage-specific data (when type is IMAGE)
metadatajsonCatalog object summary metadata
↳ idstringSquare catalog object ID
↳ typestringCatalog object type
↳ versionnumberCatalog object version

square_get_catalog_object

Retrieve a single catalog object by its ID

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
objectIdstringJaID of the catalog object to retrieve
includeRelatedObjectsbooleanNeinWhether to include related objects such as an item variations

Ausgabe

ParameterTypBeschreibung
objectobjectThe retrieved catalog object
↳ typestringType of catalog object (ITEM, ITEM_VARIATION, CATEGORY, IMAGE, etc.)
↳ idstringUnique ID for the catalog object
↳ versionnumberOptimistic concurrency version of the object
↳ updated_atstringTimestamp when the object was last updated (RFC 3339)
↳ is_deletedbooleanWhether the object is deleted
↳ present_at_all_locationsbooleanWhether the object is present at all locations
↳ item_datajsonItem-specific data (when type is ITEM)
↳ item_variation_datajsonVariation-specific data (when type is ITEM_VARIATION)
↳ category_datajsonCategory-specific data (when type is CATEGORY)
↳ image_datajsonImage-specific data (when type is IMAGE)
metadatajsonCatalog object summary metadata
↳ idstringSquare catalog object ID
↳ typestringCatalog object type
↳ versionnumberCatalog object version

square_list_catalog

List catalog objects, optionally filtered by type

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
typesstringNeinComma-separated catalog object types to return (e.g. ITEM,CATEGORY). Defaults to all top-level types
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
objectsarrayArray of catalog objects
↳ typestringType of catalog object (ITEM, ITEM_VARIATION, CATEGORY, IMAGE, etc.)
↳ idstringUnique ID for the catalog object
↳ versionnumberOptimistic concurrency version of the object
↳ updated_atstringTimestamp when the object was last updated (RFC 3339)
↳ is_deletedbooleanWhether the object is deleted
↳ present_at_all_locationsbooleanWhether the object is present at all locations
↳ item_datajsonItem-specific data (when type is ITEM)
↳ item_variation_datajsonVariation-specific data (when type is ITEM_VARIATION)
↳ category_datajsonCategory-specific data (when type is CATEGORY)
↳ image_datajsonImage-specific data (when type is IMAGE)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_search_catalog_objects

Search catalog objects by type and query filters

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
objectTypesarrayNeinArray of catalog object types to search (e.g. ["ITEM","CATEGORY"])
queryjsonNeinSquare catalog query object (e.g. {"text_query":{"keywords":["coffee"]}} or {"prefix_query":{...}})
limitnumberNeinMaximum number of results to return per page
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
objectsarrayArray of matching catalog objects
↳ typestringType of catalog object (ITEM, ITEM_VARIATION, CATEGORY, IMAGE, etc.)
↳ idstringUnique ID for the catalog object
↳ versionnumberOptimistic concurrency version of the object
↳ updated_atstringTimestamp when the object was last updated (RFC 3339)
↳ is_deletedbooleanWhether the object is deleted
↳ present_at_all_locationsbooleanWhether the object is present at all locations
↳ item_datajsonItem-specific data (when type is ITEM)
↳ item_variation_datajsonVariation-specific data (when type is ITEM_VARIATION)
↳ category_datajsonCategory-specific data (when type is CATEGORY)
↳ image_datajsonImage-specific data (when type is IMAGE)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

square_create_catalog_image

Upload an image and attach it to the catalog, optionally to a specific item

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
filefileJaThe image file to upload (UserFile object)
fileNamestringNeinOptional filename override for the image
objectIdstringNeinID of the catalog object (e.g. an item) to attach the image to
captionstringNeinCaption (alt text) for the image
idempotencyKeystringNeinUnique key to make the request idempotent (auto-generated if omitted)

Ausgabe

ParameterTypBeschreibung
objectobjectThe created catalog image object
↳ typestringType of catalog object (ITEM, ITEM_VARIATION, CATEGORY, IMAGE, etc.)
↳ idstringUnique ID for the catalog object
↳ versionnumberOptimistic concurrency version of the object
↳ updated_atstringTimestamp when the object was last updated (RFC 3339)
↳ is_deletedbooleanWhether the object is deleted
↳ present_at_all_locationsbooleanWhether the object is present at all locations
↳ item_datajsonItem-specific data (when type is ITEM)
↳ item_variation_datajsonVariation-specific data (when type is ITEM_VARIATION)
↳ category_datajsonCategory-specific data (when type is CATEGORY)
↳ image_datajsonImage-specific data (when type is IMAGE)
metadatajsonCatalog object summary metadata
↳ idstringSquare catalog object ID
↳ typestringCatalog object type
↳ versionnumberCatalog object version

square_delete_catalog_object

Delete a catalog object and its children (e.g. an item and its variations)

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
objectIdstringJaID of the catalog object to delete

Ausgabe

ParameterTypBeschreibung
deletedbooleanWhether the catalog object was deleted
deleted_object_idsarrayIDs of all catalog objects deleted (including children)
deleted_atstringTimestamp when the deletion occurred (RFC 3339)

square_batch_retrieve_inventory_counts

Retrieve current inventory counts for catalog items across locations

Eingabe

ParameterTypErforderlichBeschreibung
apiKeystringJaSquare access token (personal access token)
catalogObjectIdsarrayNeinIDs of the catalog item variations to retrieve counts for
locationIdsarrayNeinIDs of the locations to retrieve counts for (defaults to all locations)
statesarrayNeinInventory states to filter by (e.g. IN_STOCK, SOLD, IN_TRANSIT)
updatedAfterstringNeinOnly return counts updated after this RFC 3339 timestamp
limitnumberNeinMaximum number of results to return per page (1-1000)
cursorstringNeinPagination cursor from a previous response

Ausgabe

ParameterTypBeschreibung
countsarrayArray of inventory count objects
↳ catalog_object_idstringID of the catalog object (item variation) being counted
↳ catalog_object_typestringType of the counted catalog object (usually ITEM_VARIATION)
↳ statestringInventory state (e.g. IN_STOCK, SOLD, WASTE)
↳ location_idstringID of the location for this count
↳ quantitystringNumber of units in the given state at the location
↳ calculated_atstringTimestamp when the count was calculated (RFC 3339)
metadatajsonList pagination metadata
↳ countnumberNumber of items returned in this page
↳ cursorstringPagination cursor to fetch the next page, if more results exist

On this page