Getting started
API reference
How-tos
Changelog
Search…
API reference
Introduction
Addresses
Adjustments
Adyen gateways
Adyen payments
Applications
Attachments
Authorizations
Avalara accounts
Billing info validation rules
Bing geocoders
Braintree gateways
Braintree payments
Bundles
Captures
Carrier accounts
Checkout.com gateways
Checkout.com payments
Coupon codes promotion rules
Coupon recipients
Coupons
Customer addresses
Customer groups
Customer password resets
Customer payment sources
Customer subscriptions
Customers
Delivery lead times
Event callbacks
Events
External gateways
External payments
External promotions
External tax calculators
Fixed amount promotions
Fixed price promotions
Free gift promotions
Free shipping promotions
Geocoders
Gift card recipients
Gift cards
Google geocoders
Imports
In stock subscriptions
Inventory models
Inventory return locations
Inventory stock locations
Klarna gateways
Klarna payments
Line item options
Line items
Manual gateways
Manual tax calculators
Markets
Merchants
The merchant object
Create a merchant
List all merchants
Retrieve a merchant
Update a merchant
Delete a merchant
Order amount promotion rules
Order copies
Order subscriptions
Order validation rules
Orders
Organizations
Packages
Parcel line items
Parcels
Payment gateways
Payment methods
Paypal gateways
Paypal payments
Percentage discount promotions
Price lists
Price tiers
Price volume tiers
Prices
Promotion rules
Promotions
Refunds
Return line items
Returns
Shipments
Shipping categories
Shipping method tiers
Shipping methods
Shipping weight tiers
Shipping zones
SKU list items
SKU list promotion rules
SKU lists
SKU options
SKUs
Stock items
Stock line items
Stock locations
Stock transfers
Stripe gateways
Stripe payments
Tax calculators
Tax categories
Tax rules
Taxjar accounts
Transactions
Voids
Webhooks
Wire transfers
Delete a merchant
How to delete an existing merchant via API
To
delete
a merchant, send a
DELETE
request to the
/api/merchants/:id
endpoint, where
id
is the id of the merchant that you want to delete.
Request
DELETE
https://yourdomain.commercelayer.io
/api/merchants/:id
Example
Request
Response
The following request tries to delete the merchant identified by the ID "xYZkjABcde":
1
curl
-
g
-
X
DELETE
\
2
'https://yourdomain.commercelayer.io/api/merchants/xYZkjABcde'
\
3
-
H
'Accept: application/vnd.api+json'
\
4
-
H
'Authorization: Bearer your-access-token'
Copied!
On success, the API responds with a
204 No Content
status code.
Previous
Update a merchant
Next
Order amount promotion rules
Last modified
5mo ago
Copy link
Contents
Request
Example