Skip to main content
GET
/
api
/
v2
/
customer
/
{customerId}
/
{merchantId}
Get merchant customer
curl --request GET \
  --url https://demo.api.loopcrypto.xyz/api/v2/customer/{customerId}/{merchantId} \
  --header 'api-key: <api-key>' \
  --header 'entity-id: <api-key>'
{
  "customerId": "1234567890abcdef",
  "customerRefId": "1234567890abcdef",
  "paymentMethods": [
    {
      "networkId": 1,
      "merchantId": "67e55044-10b1-426f-9247-bb680e5fe0c8",
      "paymentMethodId": "1234567890abcdef",
      "paymentMethodName": "My Crypto Wallet",
      "active": true,
      "walletAddress": "0x1234567890abcdef",
      "isDefault": true,
      "token": {
        "symbol": "USDC",
        "tokenId": "123e4567-e89b-12d3-a456-426614174000",
        "address": "0x1234567890abcdef",
        "decimals": 6,
        "exchangeRates": [
          {
            "currency": "USD",
            "price": "10000",
            "provider": "CoinMarketCap",
            "timestamp": 1715731200
          }
        ]
      },
      "preAuthorization": {
        "balance": "100",
        "authorization": "49.9"
      }
    }
  ],
  "dateCreated": 1716211200
}

Authorizations

api-key
string
header
required
entity-id
string
header
required

Path Parameters

customerId
string
required

The unique identifier of the customer to retrieve. This must be a valid customer ID associated with your entity. Used to look up the specific customer's details including configuration, status, and other relevant information

merchantId
string
required

The unique identifier of the merchant the customer is associated with. This must be a valid merchant ID associated with your entity.

Response

Ok

customerId
string
required

The unique identifier that represents the customer

Example:

"1234567890abcdef"

customerRefId
string | null
required

The external customer reference ID used to tie this customer to a customer in an external system.

Example:

"1234567890abcdef"

paymentMethods
object[]
required

The payment methods configured for this customer to make payments with.

dateCreated
number
required

The date the customer record was created, represented as a Unix timestamp in seconds.

Example:

1716211200

I