Customers
Atualizar customer pelo id
Visão Geral
Tokens
Charges
Sessions
Customers
Merchants
Vendors
Sellers
Webhooks
Reports
Customers
Atualizar customer pelo id
PATCH
/
v1
/
customers
/
{id}
curl --request PATCH \
--url https://api.malga.io/v1/customers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '{
"name": "<string>",
"phoneNumber": "<string>",
"address": {
"street": "<string>",
"streetNumber": "<string>",
"complement": "<string>",
"zipCode": "<string>",
"country": "BR",
"state": "<string>",
"city": "<string>",
"district": "<string>"
}
}'
Path Parameters
id do customers que deseja alterar
Body
application/json
nome do usuario
telefone de contato do usuario
Nome da rua/avenida/travessa
Número onde se localiza o endereço
Codigo postal CEP
Pais onde se localiza o endereço - Padrão ISO 3166-1 alpha-2
Available options:
AL
, AD
, AR
, AT
, AU
, BA
, BZ
, BE
, BG
, BR
, BY
, CA
, CU
, CY
, CZ
, CH
, CL
, CN
, CO
, CR
, DE
, DK
, DO
, EC
, EE
, SV
, GT
, FI
, FR
, GB
, GR
, HR
, HK
, HU
, IS
, ID
, IE
, IN
, IL
, IT
, LI
, LT
, LU
, LV
, MK
, MC
, MD
, MT
, MU
, JP
, KR
, MX
, ME
, MY
, NL
, NZ
, NO
, PY
, PE
, PK
, PL
, PT
, RU
, RO
, SM
, RS
, SE
, SG
, TH
, TW
, TR
, SI
, SK
, ES
, UY
, UA
, US
, VE
, VN
, ZA
Estado onde se localiza o endereço
Cidade onde se localiza o endereço
Bairro onde se localiza o endereço
Complemento onde se localiza o endereço, caso exista
Response
200
The record has been successfully updated.
Was this page helpful?
curl --request PATCH \
--url https://api.malga.io/v1/customers/{id} \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--header 'X-Client-Id: <api-key>' \
--data '{
"name": "<string>",
"phoneNumber": "<string>",
"address": {
"street": "<string>",
"streetNumber": "<string>",
"complement": "<string>",
"zipCode": "<string>",
"country": "BR",
"state": "<string>",
"city": "<string>",
"district": "<string>"
}
}'