Customer and Payment Updates
Customer Contact Details Update
When a customer changes their email address associated with their account, Ordergroove needs to be notified of this change. This notification is sent via a PATCH request to the set contact details endpoint.
Destination
Staging: https://staging.restapi.ordergroove.com/customers/{merchant_user_id}/set_contact_details
Production: https://restapi.ordergroove.com/customers/{merchant_user_id}/set_contact_details
Customer Contact Details Responses
Success Response
If a successful connection is made, the request will always result in a secure HTTP response object with code 200 and a JSON payload
Error Responses
In the event of an error with the request, one of the following error codes may be returned with the corresponding JSON payload
Customer Payment Update
When a customer changes their default payment for subscriptions within their account wallet, Ordergroove needs to be notified of this change. This notification is sent via a POST request to the update payment default endpoint.
Destination:
Staging: https://staging.v2.ordergroove.com/customer/update_payment_default
Production: https://api.ordergroove.com/customer/update_payment_default
URL Encode Individual Fields
Each field needs to be URL encoded (special characters such as & will otherwise break the update request), not just the encrypted fields. The entire post should not be URL encoded, just the fields individually.
Customer Payment Update Responses
Success Response
If all validations pass, and the customer payment is updated successfully, this API will simply respond with “SUCCESS”.
Error messages
The following is the list of possible messages when an “error” result is provided in the response. In case of an error message, no updates to the customer are performed.
- “Invalid Merchant”
- “Invalid Request”
- An invalid JSON object is the most likely cause of this error
- “Customer does not exist”
- “Could not decode cc_exp_date”
- “<merchant_name> is not configured to accept <payment_field>”