*Mark As Sale

Description

The markAsSaleStatus endpoint is used to mark a Pree-Authorization transaction into a SALE.

Request

Endpoint

/ui/v1/markAsSaleStatus

Method

POST
Content-Type: application/json
Authorization: Basic $TOKEN

Note

Replace $TOKEN in the request with the base64-encoded username/password combination in the format username:password.

Given a username of username and a password of password, the request header would appear as follows:

Content-Type: application/json
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=  

Body

    {
    "id": 31754,
    "lastModifiedUserId": "929",
    "orderId": "1000000000520"
}

Response

{
    "id": 31754,
    "lastModifiedUserId": 929,
    "orderId": "1000000000520",
    "message": {
        "code": "181",
        "type": {
            "name": "SUCCESS"
        },
        "include_i_icon": false,
        "description": "TRANSACTION_MARKED_AS_SALE_SUCCESS",
        "parameters": [
            {
                "name": "ORDER_ID",
                "value": "1000000000520"
            }
        ]
    },
    "paymentGateway": null,
    "merchantId": null
}

Updated As Of Version 6.1.1