Update a customer

patch
Update a customer

https://business-sandbox.cryptopay.me/api/customers/:id
This endpoint allows you to update customers.
Request
Response
Request
Headers
Authorization
required
string
HMAC using API key and signature
Content-Type
required
string
application/json
Date
required
string
Current date in HTTP-date format
Query Parameters
id
required
string
Customer's ID
currency
optional
string
The customer's currency in your system. See the list of supported currencies on the left
refund_addresses
optional
object
This object allows you specify 1 cryptocurrency address for each type of supported cryptocurrencies i.e. BTC, ETH, XRP, LTC and BCH. In case Cryptopay detects a High-Risk transaction, such transaction will not be processed. Instead, it will be sent to the address specified for respective cryptocurrency. If you do not specify any addresses here, High-Risk payments will be put on hold. Refer to Invoice and ChannelPayment statuses for more information
Response
200: OK
Customer successfully updated.
{
"data": {
"id": "e7bb04fb-7f33-4729-819e-05a92761b492",
"currency": "EUR",
"refund_addresses": {
"BTC": "2NDdPLG9VDXJYE8gCabmG34JJRaqSUJ1KFK"
}
}
}

API call example.

curl -X POST \
https://business-sandbox.cryptopay.me/api/customers/:id \
-H 'Authorization: HMAC ***' \
-H 'Content-Type: application/json' \
-H 'Date: Tue, 19 Mar 2019 10:11:40 GMT' \
-d '{"id":"e7bb04fb-7f33-4729-819e-05a92761b492", "currency":"EUR", "refund_addresses":{"BTC":"2NDdPLG9VDXJYE8gCabmG34JJRaqSUJ1KFK"}}'

Response schema.

Parameter

Type

Description

id

string

The customer's reference ID in your system

currency

string

The customer's currency in your system

refund_addresses

object

The list of cryptocurrency addresses where Cryptopay will refund High-Risk transactions to