Void Order

This endpoint is for fully or partially void an order for an authorized (deferred payment request.

Resource URL

POST http://api.qa.optty.com/orders/{ORDER-ID}/void

For live environment, please update the endpoint to https://api.optty.com

Headers

Key
Value

Content-Type

application/json

Authorization

Bearer {GENERATED_ACCESS_TOKEN}

Parameters

Request Parameters

Field
Type
Description
Required

voidReference

string

The reference for voiding request

Yes

description

string

The description or reason for the voiding

No

amount

numeric

The amount to be voided from the total order amount

Yes

Response Parameters

Field
Type
Description
Required

voidReference

string

The reference passed for the voiding request

voidedId

string

The returned Id for the completion execution of the request

amount

numeric

The amount processed for the voiding operation

Sample Request/Response

{
    "voidReference": "LatEHAuPtpN2HSrTMK-1",
    "description": "Please void this order",
    "amount": 100
}
{
    "voidReference": "LatEHAuPtpN2HSrTMK-1",
    "amount": 100,
    "voidedId": "LatEHAuPtpN2HSrTMK-1"
}

Last updated