Merchants
Update merchant organization
PATCH
/
merchants
/
{id}
curl --request PATCH \
--url https://api.sulu.sh/v0/merchants/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>"
}'
{
"id": "<string>",
"object": "merchant",
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
The unique identifier of the merchant organization to update.
Body
application/json
Response
200
application/json
Merchant organization updated successfully
The response is of type object
.
curl --request PATCH \
--url https://api.sulu.sh/v0/merchants/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>"
}'
{
"id": "<string>",
"object": "merchant",
"name": "<string>",
"email": "jsmith@example.com",
"description": "<string>",
"metadata": {},
"vatNumber": "<string>",
"address": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"billingAddress": {
"line1": "<string>",
"line2": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"zipCode": "<string>"
},
"phone": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
Assistant
Responses are generated using AI and may contain mistakes.