Get Token
Use this request to retrieve an existing token
info
HTTP status code 200 indicates success
Endpoint
Method: GET
/api/tokens/{token}
URI Parameters
| Name | Description | Type | Additional Information |
|---|---|---|---|
| token | Token returned by CreateOrder request when order is finalized | String |
Response Information
- Response Model
- Response Sample
| Name | Description | Type | Additional Information |
|---|---|---|---|
| Token | ID of the token, needed to get the token | Guid | |
| Status | Status for recurring token | Status | Enum |
| Currency | Currency as defined by ISO 4217 | String | |
| PaymentMethod | The payment method associated with the token.
| String | |
| PaymentMethodDetails | Details specific to chosen payment method | CardDetails Currently null for Invoices |
application/json
{
"token": "4b10836f-f9e4-4b2d-32e8-08dad38a1eda",
"status": "Active",
"currency": "SEK",
"paymentMethod": "Card",
"paymentMethodDetails": { //Details specific to chosen payment method
"expiryMonth": 7,
"expiryYear": 22
}
}
TokenStatus
Status values indicate in which state the token is:
| Status Code | Numerical Value | Description |
|---|---|---|
| Active | 1 | Indicates that token is active and available to use for recurring orders. |
| Cancelled | 2 | Indicates that the token is cancelled and no further actions can be made |
RecurringCardDetails
| Name | Description | Type | Additional Information |
|---|---|---|---|
| ExpiryMonth | Month indicating when the card will expire | Int64 | |
| ExpiryYear | Year indicating when the card will expire | Int64 |