whoami7 - Manager
:
/
home
/
qbizpnmr
/
arif.umairtax.com
/
vendor
/
square
/
square
/
doc
/
models
/
Upload File:
files >> /home/qbizpnmr/arif.umairtax.com/vendor/square/square/doc/models/retrieve-customer-response.md
# Retrieve Customer Response Defines the fields that are included in the response body of a request to the `RetrieveCustomer` endpoint. Either `errors` or `customer` is present in a given response (never both). ## Structure `RetrieveCustomerResponse` ## Fields | Name | Type | Tags | Description | Getter | Setter | | --- | --- | --- | --- | --- | --- | | `errors` | [`?(Error[])`](../../doc/models/error.md) | Optional | Any errors that occurred during the request. | getErrors(): ?array | setErrors(?array errors): void | | `customer` | [`?Customer`](../../doc/models/customer.md) | Optional | Represents a Square customer profile in the Customer Directory of a Square seller. | getCustomer(): ?Customer | setCustomer(?Customer customer): void | ## Example (as JSON) ```json { "customer": { "address": { "address_line_1": "500 Electric Ave", "address_line_2": "Suite 600", "administrative_district_level_1": "NY", "country": "US", "locality": "New York", "postal_code": "10003" }, "created_at": "2016-03-23T20:21:54.859Z", "creation_source": "THIRD_PARTY", "email_address": "Amelia.Earhart@example.com", "family_name": "Earhart", "given_name": "Amelia", "group_ids": [ "545AXB44B4XXWMVQ4W8SBT3HHF" ], "id": "JDKYHBWT1D4F8MFH63DBMEN8Y4", "note": "a customer", "phone_number": "+1-212-555-4240", "preferences": { "email_unsubscribed": false }, "reference_id": "YOUR_REFERENCE_ID", "segment_ids": [ "1KB9JE5EGJXCW.REACHABLE" ], "updated_at": "2016-03-23T20:21:54.859Z", "version": 1, "cards": [ { "id": "id7", "card_brand": "AMERICAN_EXPRESS", "last_4": "last_49", "exp_month": 113, "exp_year": 183 } ] }, "errors": [ { "category": "REFUND_ERROR", "code": "MERCHANT_SUBSCRIPTION_NOT_FOUND", "detail": "detail1", "field": "field9" }, { "category": "MERCHANT_SUBSCRIPTION_ERROR", "code": "BAD_REQUEST", "detail": "detail2", "field": "field0" }, { "category": "EXTERNAL_VENDOR_ERROR", "code": "MISSING_REQUIRED_PARAMETER", "detail": "detail3", "field": "field1" } ] } ```
Copyright ©2021 || Defacer Indonesia