Payment Token Deletion¶
Deletes a payment token for the card.
For additional information, please see “Payment Token“
Request¶
DELETE /payin/v1/sites/{siteId}/tokens
Path Parameters¶
Parameter | Required | Type | Description |
---|---|---|---|
siteId | Yes | string | Merchant site identifier |
Headers¶
Header | Required | Type | Description |
---|---|---|---|
Authorization | Yes | string | API access key. Bearer [access-token] |
Content-type | Yes | string | Request content. application/json |
Accept | No | string | Response content. application/json |
Body Parameters¶
Parameter | Required | Type | Description |
---|---|---|---|
customerAccountId | Yes | string | Identifier of the customer linked to the token in the merchant’s information system |
token | Yes | string | Payment token value |
Request Example¶
Payment token deletion
DELETE /partner/payin/v1/sites/test-01/tokens HTTP/1.1
Accept: application/json
Authorization: Bearer 5c4b25xx93aa435d9cb8cd17480356f9
Content-type: application/json
Host: b2b-api.qiwi.com
{
"customerAccountId": "customer123",
"token": "c5ba4a05-21c9-4a36-af7a-b709b4caa4d6"
}
Response¶
See also HTTP error codes
Successful Response Parameters¶
On successful processing of the request the server returns HTTP code 204
.
Error Parameters¶
Parameter | Required | Type | Description |
---|---|---|---|
serviceName | Yes | string | Name of the service that produced the error |
errorCode | Yes | string | Error code |
description | Yes | string | Error description for the merchant |
userMessage | Yes | string | Error description for the customer |
dateTime | Yes | string | Error date and time |
traceId | Yes | string | Error Log unique ID |
cause | No | object | Description for the field validation error |