日本語
cURL
curl --request POST \ --url https://api-dev.paymentoptions.com/api/v1/api/v1/server-to-server-interface/void \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --header 'x-api-key: <api-key>' \ --data '{ "transactionId": "ab8444e7-fec0-40dd-994d-0ad813785f74", "merchant_id": "< Merchant ID >" }'
{ "success": true, "status_code": 201, "is_live": false, "transaction_type": "VOID", "gateway_response": { "version": "1", "type": "INFO", "message": "承認が正常にキャンセルされました。", "code": "INFO0003" }, "merchant_details": { "legal_name": "Tink15 Factory", "mid": "< Merchant ID >", "merchant_txn_ref": "qwe" }, "payment_details": { "amount": 1000, "response_code": 0, "auth_code": "917290", "currency": "JPY", "payment_method": "ECMC-SSL", "scheme": "MASTERCARD", "card": { "name": "John Doe", "number": "5200000000001005", "exp_month": "12", "exp_year": "24" }, "additional_data": { "payment_data_source": { "type": "card" } } }, "transaction_details": { "id": "9e9255f5-d3dc-423e-9026-6e4da194bab5", "ref": 74813, "timestamp": "2024-11-25T08:33:48.000Z", "merchant_txn_ref": "qwe" } }
認証無効化APIは、資金がキャプチャされる前に、以前に認証された支払いをキャンセルし、顧客のアカウントでの保留を解除するために使用されます。
認証のためのAPIキー。形式:'Basic YOUR_API_KEY_HERE'
x-api-key専用のAPIキー。
取引を無効にするためのリクエストペイロード。
The body is of type object.
object
取引が正常に無効化されました。
The response is of type object.