Nhảy tới nội dung
Phiên bản: Lastest

Xoá token và thẻ đã lưu

API xoá token và thẻ đã lưu

EndPoint

DELETE /api/v2/token/delete

Header Params

Tham sốYêu cầuKiểu dữ liệuMô tảLưu ý
X-APPOTAPAY-AUTHrequiredString Cách tạo JWT_TOKEN
Content-TyperequiredStringGiá trị: application/json
X-Request-IDoptionalStringĐịnh dạng UUIDv4. Request ID để kiểm tra yêu cầu khi xảy ra sự cốmax:42
X-LanguageoptionalStringGiá trị vi hoặc en tương ứng với link thanh toán sẽ là tiếng việt hoặc tiếng anh, (mặc định: vi)

in:vi,en

X-Account-Ref-IDoptionalString

Mã định danh của tài khoản Sub account do AppotaPay cung cấp.

Bắt buộc truyền khi thanh toán giao dịch của Sub account loại owner

{
"X-APPOTAPAY-AUTH": "JWT_TOKEN",
"Content-Type": "application/json",
"X-Request-ID": "Your_Unique_id",
"X-Language": "vi",
"X-Account-Ref-ID": "9723f73b-9295-4acb-884b-ab6310c2e653"
}

Request Params

Tham sốYêu cầuKiểu dữ liệuVí dụ
tokenrequiredString9704001845460018

Response Params

Tham sốYêu cầuKiểu dữ liệuMô tả
errorCoderequiredIntegerMã lỗi
messagerequiredStringMô tả lỗi

Thành công

Http Status Code 200 - OK

Example Response

{
"errorCode": 0,
"message": "Thành công"
}

Thất bại

HTTP Status Code != 200 Với errorCode trả về, vui lòng tham khảo bảng mã lỗi tại đây

Ví dụ Code

curl -X DELETE "https://gateway.dev.appotapay.com/api/v2/token/delete" \
-H "X-APPOTAPAY-AUTH: JWT_TOKEN" \
-H "Content-Type: application/json" \
-H "X-Request-ID: Your_Unique_id" \
-H "X-Language: vi" \
-H "X-Account-Ref-ID: 9723f73b-9295-4acb-884b-ab6310c2e653" \
-d '{
"token": "9704001845460018"
}'

Request

REQUEST

Development server
Giá trị tương ứng với payment link có thể là tiếng Việt hoặc tiếng Anh (mặc định: vi)
Example (from schema)