Skip to main content

Customer management

The Customer Management API allows you to manage basic customer information, and integration with the Customer API is a must if you need to support save payment token functionality.

  • Name: Customer nickname.
  • Email: Customer email. Will send invoice to this email.
  • Phone: Customer phone.
  • Reference Number: Your side unique customer ID.
  • Default Payment Method: default selected payment method on Payment SDK / Payment Link.
info

If you want to associate an order with a customer, then you can pass the customer_UUID field when creating the order.

Create a customer

You can use your system’s unique id as referncce_number to create a customer in Wonder Gateway. And Wonder Gateway will reply to you a UUID, then you can use this UUID to make further request.

Please refer to Create Customer API


Update a customer profile

For easier integration, the create customer API provides idempotency, where creating a customer with the same reference_number is equivalent to updating the object.


Get customer

Get customer profile by customer UUID.

Please refer to Get Customer API


Create a customer payment token

Create a payment token that can represents credit card’s details. This token will include all details when you use credit card’s to make payment. After this token produced, you can only use this token to make payment instead of input the credit card dictionary, refer to Payment Scenarios - Payment tokenisation.

Please refer to Create Customer Payment Token


Check a customer payment token status

Check the payment token status with the given UUID and token. Normally, only card holder complete the 3ds validation, you can use this API to get the payment(card) token state.

Please refer to Check Customer Payment Token State


Delete a customer payment token

Permanently deletes a customer payment token. Attempts to delete a customer payment token that are no long need.

Please refer to Delete Payment Token


Get customer payment token list

Get all payment(card) tokens for one specific customer with the given UUID and token.

Please refer to Get Customer Payment Tokens