PUT {{baseURL}}/pay-api/v1/customers/{{customerId}}
This endpoint updates a customer's information.
See Also:
To list customers, see GET /pay-api/v1/customers.
To create a customer, see POST /pay-api/v1/customers.
To retrieve a customer by ID, see GET /pay-api/v1/customers/{customerId}.
To delete a customer, see DELETE /pay-api/v1/customers/{customerId}.
Specifies the name of the customer's company or organization.
Example: Peppared Street Cafe
Specifies the customer's email
Example: pepparedstreetcafe@example.com
Specifies the customer's mobile phone number.
Example: +14155552309
Specifies the customer's SMS notification is enabled.
If true, the customer's SMS notification is enabled.
If false, the customer's SMS notification is not enabled.
If missing or omitted, the information is not available.
Example: true
Specifies to use the billing address as the shipping address.
If true, use the billing address as the shipping address.
If false, do not use the billing address as the shipping address. Instead, use the field shippingAddress.
Example: true
- Mock serverhttps://developer.flute.com/_mock/api-reference/pay-api/v1/customers/{customerId}
- Sandbox environmenthttps://sandbox.api.flute.com/pay-api/v1/customers/{customerId}
- Production environmenthttps://api.flute.com/pay-api/v1/customers/{customerId}
curl -i -X PUT \
https://developer.flute.com/_mock/api-reference/pay-api/v1/customers/c4b210e9-be39-4ebc-8195-0c422de87f90 \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"firstName": "Alexandro",
"lastName": "Peppared",
"companyName": "Peppared Street Cafe",
"email": "pepparedstreetcafe@eaxample.com",
"mobilePhoneNumber": "+14155554618",
"isMobileNumberSmsNotificationsEnabled": true,
"useBillingAsShippingAddress": false,
"billingAddress": {
"addressLine1": "7429 Desert Mirage Lane",
"addressLine2": "Office 7",
"city": "Chicago",
"zip": "60612-0001",
"stateName": "Illinois",
"stateId": 8,
"countryId": 1
},
"shippingAddress": {
"addressLine1": "7429 Desert Mirage Lane",
"addressLine2": "Office 7",
"city": "Phoenix",
"zip": "60612-0001",
"stateName": "Illinois",
"stateId": 8,
"countryId": 1
}
}'