Skip to main content
POST
/
customers
/
{customerId}
/
payment-methods
cURL
curl --request POST \
  --url https://api.juo.io/admin/v1/customers/{customerId}/payment-methods \
  --header 'Content-Type: application/json' \
  --header 'X-Juo-Admin-Api-Key: <api-key>' \
  --header 'X-Tenant-ID: <x-tenant-id>' \
  --data '
{
  "provider": "bogus"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "customer": "7654321",
  "instrument": {
    "type": "credit-card",
    "brand": "<string>",
    "maskedNumber": "<string>"
  }
}

Authorizations

X-Juo-Admin-Api-Key
string
header
required

Long-lived Admin API key issued from the Juo merchant portal. Pass as the X-Juo-Admin-Api-Key header.

Headers

X-Tenant-ID
string
required

Unique identifier of the tenant in the system (usually a store identifier)

Path Parameters

customerId
string
required

The customer identifier

Minimum string length: 1

Body

application/json
provider
enum<string>
Available options:
bogus

Response

Default Response

id
string<uuid>
required
customer
required

Customer id when not expanded, or the full Customer object when the field name is included in the expand query parameter.

Minimum string length: 1
Example:

"7654321"

instrument
object