Unregister Merchant API

Unregister merchant API is an API call that can be used to remove a merchant from a partner based on the provided Merchant ID.

Request Header

FieldTypeDescription
AuthorizationStringBasic Base64Encode(partnerServerKey:)
X-PARTNER-IDStringUnique identifier for partner. Provided by Midtrans.

Example

PUT api/v1/merchants/M123456/unregister

Authorization: Basic  
X-PARTNER-ID: 82150823919040624621823174737537

Response

Body
FieldTypeDescription
status_codeStringMerchant identifier that is unique per each merchant
status_messageStringThe name of the merchant
Successful Response
{
  "status_code": "204",
  "status_message": "Merchants have been successfully removed from partners."
}
Error Response 404 Data doesn’t exist
{
  "status_code": "404",
  "status_message": "Merchant doesn't exist."
}
Error Response 500
{
  "error_messages": [
    "Internal server error"
  ]
}