The API “get_shopper_payment_account” allows a user to retrieve the payment account associated with their shopper account. It returns a list of payment cards associated with the user’s payment account. The user must provide their user ID as a parameter to retrieve their payment account information. The response includes the card ID, card type, name on card, card number, and expiry date for each card associated with the user’s account. The API response is in JSON format.
The Voomerr payment status endpoint is
Request Parameters #
|user_id||string||Yes||The unique identifier of the user.|
|country_code||string||Yes||The country code of the user’s location.|
The API response will contain a JSON object with the following fields:
|status||string||The status of the API call (e.g. “success” or “error”).|
|message||string||A message associated with the API call.|
|payment_status||string||The payment status of the user.|
Possible values for ‘payment_status’ are:
- ‘not_setup’ : The user has not set up their payment account yet.
- ‘setup_incomplete’ : The user has started setting up their payment account, but the process is not yet complete.
- ‘setup_complete’ : The user has completed setting up their payment account.
Example response #
"message": "Payment setup successful.",
If an error occurs, the ‘status’ field will be “error” and the ‘message’ field will contain a description of the error.
Example Request #