Skip to main content

Close Account

DELETE 

/accounts/:customerAccountId

This endpoint closes an account. It enables closing an existing account, created previously through a checkout API call, under the provided customerAccountId input parameter.

Request​

Path Parameters

    customerAccountId stringrequired

    Possible values: <= 255 characters

    Customer identifier

    Example: john_doe_12345

Header Parameters

    Content-Type stringrequired

    Must be application/json

    Accept-Language stringrequired

    Must be be en-US

    Origin stringrequired

    The origin of the request

    User-Agent stringrequired

    The client making the request

Bodyrequired

    merchantKeystring<uuid>required

    The unique identifier for the merchant.

    Possible values: <= 36 characters

    Example: 73afeb44-432e-4b91-be37-a6b3d2fb7447
    closingReasonstringrequired

    The reason why the account is being closed.

    Possible values: <= 255 characters

    Example: test close account

Responses​

Successful response

Schema
    responseDescriptionstringrequired

    Response description.

    closingDatestring<date>required

    The request closing date.

    closingTimestringrequired

    The request closing time in HHMMSS format.

    Possible values: Value must match regular expression ^([01]\d|2[0-3])[0-5]\d[0-5]\d$