cURL
curl --request POST \ --url https://terminal-dev.xendit.co/v1/terminal/payments/{id}/void \ --header 'Authorization: Basic <encoded-value>'
{ "code": "SUCCESS", "error_code": "", "message": "Void request created successfully" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
Terminal Payment ID
Terminal void request created successfully
"SUCCESS"
""
"Void request created successfully"