Issuing a Card
Order virtual and plastic corporate cards, choose their design and scheme, settle the issuance fee, and link the card to an employee.
Before You Start
Read the following guides before proceeding:
| Guide | Why |
|---|---|
| Getting Started | Platform overview and setup |
| Api Basics | Required headers and request configuration |
| Authentication | How to obtain the corporation token |
| Capabilities | Card issuance is capability-gated |
| Employees | A card is linked to an employee record |
Overview
A corporate card is issued against the corporation wallet and optionally linked to an employee. Two
formats are available — Virtual and Plastic. The Corporate API does not issue metal cards, in any
version.
Three issuance versions reach the same card. They differ in how the issuance fee is settled and in
whether the order can name the card's design, card program and payment system:
- v1 — you pay the fee on-chain yourself and pass the transaction hash.
- v2 — Wirex debits the fee at issuance against a
delivery_id. - v3 — the v2 fee model, plus
design,card_programandpayment_systemon the order, read from
GET /api/v3/cards/config. A fee is required only when the order is actually priced above zero.
Whether an issuance fee applies at all depends on your company configuration.
Prerequisites
Read GET /api/v1/corporations and confirm the capability for the format you want is Active:
| Format | Capability | Ceiling |
|---|---|---|
| Virtual | VisaVirtualCard | 30 virtual cards per corporation |
| Plastic | VisaPlasticCard | 15 plastic cards per corporation |
Both also require the corporation profile to be Active. At the ceiling the capability flips to
NotAvailable with You have reached the maximum number of virtual cards allowed (or plastic).
Closing a card does not free a slot. Every card the corporation has issued counts toward the ceiling,
Closedcards included. Contact Wirex if the corporation needs a higher ceiling.
Choosing an Issuance Flow
Check Whether Fees Apply
GET /api/v1/cards/{type}/fees/{country}
Call this first. Its answer decides whether any fee step runs.
| Response | Meaning | What to do |
|---|---|---|
400 ErrorNotSupported — You have no card order/delivery fees to pay | Fees are not enforced for your company | Skip every fee step. Issue the card directly, with v1, v2 or v3 |
400 ErrorNotSupported — Card issuance is not supported for this company | No card configuration exists for your company | Contact Wirex. No issuance flow will work |
200 with order_fee | Fees are enforced | Pick a flow below |
Comparing v1, v2 and v3
| v1 — External fee | v2 — Direct fee | v3 — Configurable offering | |
|---|---|---|---|
| Issuance endpoint | POST /api/v1/cards/virtual, POST /api/v1/cards/plastic | POST /api/v2/cards/virtual, POST /api/v2/cards/plastic | POST /api/v3/cards/virtual, POST /api/v3/cards/plastic |
| How the fee is collected | You transfer it on-chain yourself | Debited by Wirex at issuance | Debited by Wirex at issuance |
| Fee invoice endpoint | POST /api/v1/cards/{type}/fees/{country}/payment | POST /api/v2/cards/{type}/fees/{country}/payment | POST /api/v2/cards/{type}/fees/{country}/payment |
| Field passed at issuance | payment_transaction_hash | delivery_id | delivery_id |
| When the fee field is required | When fees are enforced and the order is priced above zero | Whenever fees are enforced | When fees are enforced and the order is priced above zero |
| Design, card program, payment system | Configured defaults | Configured defaults | Named on the order, or configured defaults |
| Order configuration | Not used | Not used | GET /api/v3/cards/config |
| Permissions | CardSu or CardCreate | CardSu or CardCreate | CardSu or CardCreate |
Pick one and follow it end to end. Do not mix a v2 invoice with a v1 issuance call — delivery_id is
not read by the v1 endpoints, and payment_transaction_hash is not read by the v2 or v3 endpoints. A v2
invoice serves v3 issuance: v3 has no invoice endpoint of its own.
Use v3 when the card's design or scheme matters to you, or when your company prices some formats at
zero and you want Wirex to collect the fee — v2 refuses an order with no delivery_id whenever fees are
enforced, even if that order costs nothing. Every version issues on the Wirex card rail, funded from the corporation wallet; there is no
separate funding wallet on a corporate card order.
Shared Lookups
Check Order Fees
GET /api/v1/cards/{type}/fees/{country}
Requires CardSu, CardCreate or CardView.
Path parameters:
| Parameter | Description |
|---|---|
{type} | Plastic, Virtual or Metal. Case-insensitive — virtual and VIRTUAL both resolve |
{country} | Country the card is issued in, as an uppercase ISO 3166-1 alpha-2 code, e.g. GB |
Response:
{
"currency": "USD",
"order_fee": 9.99,
"order_fee_precise": "9990000000000000000",
"decimals": 18,
"estimated_payment_amounts": [
{
"amount": 9.99,
"precise_amount": "9990000000000000000",
"token_address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
"token_symbol": "WUSD",
"rate": 1.0,
"fee_amount": 0,
"fee_precise_amount": "0"
}
]
}| Field | Description |
|---|---|
currency | Fiat currency the fee is denominated in. A fee configured in USDC is reported as USD |
order_fee | Order fee in currency. Excludes delivery — see below |
order_fee_precise | order_fee as an integer string scaled by decimals — exact, where order_fee is a float |
decimals | Scale of order_fee_precise. Always 18 |
estimated_payment_amounts[] | The fee converted into each supported stablecoin |
estimated_payment_amounts[].precise_amount | Amount in the token's smallest unit, as a string |
estimated_payment_amounts[].rate | Rate applied for that token |
order_feeis the card order fee only. For a plastic card the delivery fee is added on top, and the
invoice endpoint is what returns the combined total. Do not presentorder_feeas the amount the
corporation will pay for a physical card.
List Delivery Countries
GET /api/v1/cards/delivery/countries
Requires CardSu, CardCreate or CardView. Returns the countries a plastic card can be delivered to.
Response:
["GB", "DE", "FR", "ES", "IT"]List Delivery Methods
GET /api/v1/cards/delivery/methods/{country}
Requires CardSu, CardCreate or CardView.
Path parameters:
| Parameter | Description |
|---|---|
{country} | Delivery country, ISO 3166-1 alpha-2 |
Response:
[
{
"provider": "DHL",
"fee": 15.0,
"fee_precise": "15000000000000000000",
"decimals": 18,
"currency": "USD",
"estimated_payment_amounts": [
{
"amount": 15.0,
"precise_amount": "15000000000000000000",
"token_address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
"token_symbol": "WUSD",
"rate": 1.0
}
]
}
]| Field | Description |
|---|---|
provider | Courier identifier. This is the value passed as delivery_provider |
fee | Delivery fee in currency |
fee_precise | fee as an integer string scaled by decimals |
decimals | Scale of fee_precise. Always 18 |
estimated_payment_amounts[] | The delivery fee converted into each supported stablecoin |
Read the Order Configuration
GET /api/v3/cards/config
Requires CardSu, CardCreate or CardView. Used by Flow v3 only.
Returns the card products your company may order, grouped by format: the payment system, designs, card
programs and billing countries of each.
Response:
{
"formats": [
{
"format": "Plastic",
"offerings": [
{
"payment_system": "Visa",
"designs": ["VisaCorporate"],
"card_programs": [],
"countries": ["AT", "BE", "DE", "FR", "GB", "US"]
}
]
},
{
"format": "Virtual",
"offerings": [
{
"payment_system": "Visa",
"designs": ["VisaPlatinum"],
"card_programs": [],
"countries": ["AT", "BE", "DE", "FR", "GB", "US"]
}
]
}
]
}| Field | Description |
|---|---|
formats[] | One entry per orderable format, sorted by format |
formats[].format | Virtual, Plastic or Metal. Metal can appear in the configuration, but the Corporate API has no metal issuance endpoint |
formats[].offerings[] | The products orderable in this format |
offerings[].payment_system | Scheme the product issues on: Visa or MasterCard |
offerings[].designs[] | Designs the product may be ordered with. The first one is the default |
offerings[].card_programs[] | Card programs the product may be issued on — a program carries the card's cash-withdrawal terms. The first one is the default. Empty where none is configured |
offerings[].countries[] | Billing countries (ISO 3166-1 alpha-2) that may order the product |
Filter by country, then union. A market that offers two designs on different card programs is
two offerings over the same countries, not one entry per country. Keep the offerings whosecountries
contain the corporation's billing country —corporation_registration_address.countryon
GET /api/v1/corporations— and offer the union of their values.
A company with nothing configured receives {"formats": []} with 200, not an error. Read that as
"nothing orderable".
const response = await fetch(`${baseUrl}/api/v3/cards/config`, {
headers: { 'Authorization': `Bearer ${corporationToken}` }
});
const { formats } = await response.json();
const virtual = (formats.find((f) => f.format === 'Virtual')?.offerings ?? [])
.filter((o) => o.countries.includes(billingCountry));response = requests.get(
f"{base_url}/api/v3/cards/config",
headers={"Authorization": f"Bearer {corporation_token}"},
)
formats = response.json()["formats"]
virtual = [
o
for f in formats if f["format"] == "Virtual"
for o in f["offerings"] if billing_country in o["countries"]
]req, _ := http.NewRequest("GET", baseURL+"/api/v3/cards/config", nil)
req.Header.Set("Authorization", "Bearer "+corporationToken)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var config struct {
Formats []struct {
Format string `json:"format"`
Offerings []struct {
PaymentSystem string `json:"payment_system"`
Designs []string `json:"designs"`
CardPrograms []string `json:"card_programs"`
Countries []string `json:"countries"`
} `json:"offerings"`
} `json:"formats"`
}
json.NewDecoder(resp.Body).Decode(&config)Flow v1: External Fee
Step 1: Create the Fee Invoice
POST /api/v1/cards/{type}/fees/{country}/payment
Requires CardSu or CardCreate.
Request body:
{
"token_address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
"delivery_provider": "DHL"
}| Field | Type | Required | Description |
|---|---|---|---|
token_address | string | Yes | Token used to pay the fee. Must exist in GET /api/v1/config/tokens |
delivery_provider | string | Conditional | Required when {type} is not Virtual; omit for virtual cards |
Response:
{
"recipient_address": "0xAAFF0821A09A1Aac28B72dD3Ff410A7ea5FEb874",
"payment_amount": {
"amount": 24.99,
"precise_amount": "24990000000000000000",
"token_address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
"token_symbol": "WUSD",
"rate": 1.0
}
}| Field | Description |
|---|---|
recipient_address | Address to transfer the fee to |
payment_amount | The total to transfer — order fee plus delivery fee, converted to token_address |
Step 2: Pay the Fee On-Chain
Transfer payment_amount.precise_amount of payment_amount.token_address to recipient_address from
the corporation wallet, and keep the transaction hash. Step 3 consumes it as
payment_transaction_hash.
Step 3: Issue the Card
POST /api/v1/cards/virtual
POST /api/v1/cards/plastic
Requires CardSu or CardCreate.
Request body — virtual:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"payment_transaction_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef"
}Request body — plastic:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"delivery_provider": "DHL",
"payment_transaction_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"delivery_address": {
"line1": "10 Downing Street",
"line2": "Flat 2",
"city": "London",
"state": "",
"postal_code": "SW1A 2AA",
"country": "GB"
}
}| Field | Type | Required | Description |
|---|---|---|---|
card_name | string | No | Display name shown in the card list. Omitted: the card reports a masked number, e.g. Visa **** **** **** 5678 |
name_on_card | string | No | Name embossed on the card. Overridden when the linked employee has complete personal data. Omitted with no employee_id: the issuer embosses its own default, not the corporation name — in sandbox WIREX (<number>) |
employee_id | string | No | Employee to link the card to. Must belong to this corporation |
payment_transaction_hash | string | Conditional | Required when fees are enforced and the order is priced above zero — the order fee for a virtual card, order plus delivery fee for a plastic one; omit otherwise |
delivery_provider | string | Conditional | Plastic only. Required when fees are enforced. Defaults to DHL when fees are not enforced |
delivery_address | object | Yes for plastic | Where the card is shipped |
delivery_address.line1 | string | Yes | House number and street |
delivery_address.line2 | string | No | Apartment, suite, floor |
delivery_address.city | string | Yes | City |
delivery_address.state | string | No | State or province |
delivery_address.postal_code | string | Yes | Postal code |
delivery_address.country | string | Yes | Uppercase ISO 3166-1 alpha-2 |
Response:
{
"id": "64120850-73a1-4df5-a074-d463258c9deb"
}| Field | Description |
|---|---|
id | The card id. Every card endpoint takes it as {cardId} |
Flow v2: Direct Fee
Step 1: Create the Fee Invoice
POST /api/v2/cards/{type}/fees/{country}/payment
Requires CardSu or CardCreate. The request body is identical to v1.
Response:
{
"delivery_id": 12345,
"recipient_address": "0xAAFF0821A09A1Aac28B72dD3Ff410A7ea5FEb874",
"payment_amount": {
"amount": 24.99,
"precise_amount": "24990000000000000000",
"token_address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
"token_symbol": "WUSD",
"rate": 1.0
}
}| Field | Description |
|---|---|
delivery_id | Integer reference for the issuance call. Single-use |
recipient_address | The platform Buffer contract address the fee settles into |
payment_amount | Order fee plus delivery fee, converted to token_address |
delivery_idis consumed by the issuance call, not by the invoice call. A failed issuance
attempt that got past validation may leave it spent. Do not retry a failed v2 issuance with the same
delivery_id— create a new invoice.
Step 2: Issue the Card
POST /api/v2/cards/virtual
POST /api/v2/cards/plastic
Requires CardSu or CardCreate.
Request body — virtual:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"delivery_id": 12345
}Request body — plastic:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"delivery_provider": "DHL",
"delivery_id": 12345,
"delivery_address": {
"line1": "10 Downing Street",
"line2": "Flat 2",
"city": "London",
"state": "",
"postal_code": "SW1A 2AA",
"country": "GB"
}
}| Field | Type | Required | Description |
|---|---|---|---|
delivery_id | integer | Conditional | Required when fees are enforced, and must be positive. Ignored when fees are not enforced |
| Other fields | As in v1, except that payment_transaction_hash is not used |
Response:
{
"id": "64120850-73a1-4df5-a074-d463258c9deb"
}Code
const response = await fetch(`${baseUrl}/api/v2/cards/virtual`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${corporationToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
card_name: 'Marketing team card',
employee_id: employeeId,
delivery_id: deliveryId // omit if fees not enforced
})
});
const { id: cardId } = await response.json();response = requests.post(
f"{base_url}/api/v2/cards/virtual",
headers={
"Authorization": f"Bearer {corporation_token}",
"Content-Type": "application/json",
},
json={
"card_name": "Marketing team card",
"employee_id": employee_id,
"delivery_id": delivery_id, # omit if fees not enforced
},
)
card_id = response.json()["id"]body, _ := json.Marshal(map[string]interface{}{
"card_name": "Marketing team card",
"employee_id": employeeID,
"delivery_id": deliveryID, // omit if fees not enforced
})
req, _ := http.NewRequest("POST", baseURL+"/api/v2/cards/virtual", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer "+corporationToken)
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var issueResp struct {
Id string `json:"id"`
}
json.NewDecoder(resp.Body).Decode(&issueResp)Flow v3: Configurable Offering
Step 1: Read the Order Configuration
Call GET /api/v3/cards/config and keep the offerings of the format you
are ordering whose countries contain the corporation's billing country. Step 3 takes design,
card_program and payment_system from them. Skip this step to accept the defaults — every one of the
three fields is optional.
Step 2: Create the Fee Invoice — Only When the Order Is Priced
When fees are not enforced, skip this step. When they are, read the price first with
Check Order Fees — for a plastic card, add the delivery method's fee:
| Price of the order | What to do |
|---|---|
| Above zero | Create a v2 invoice with POST /api/v2/cards/{type}/fees/{country}/payment — the request and response are as in Flow v2, Step 1 — and keep delivery_id for Step 3 |
| Zero | No invoice. Step 3 sends no delivery_id |
A v3 order that is priced above zero and carries no
delivery_idis refused with400before anything
is ordered — see Error Handling. A v3 order priced at zero is issued without one,
where v2 would refuse it.
Step 3: Issue the Card
POST /api/v3/cards/virtual
POST /api/v3/cards/plastic
Requires CardSu or CardCreate.
Request body — virtual:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"design": "VisaPlatinum",
"payment_system": "Visa",
"delivery_id": 12345
}Request body — plastic:
{
"card_name": "Marketing team card",
"name_on_card": "Acme Inc IT",
"employee_id": "64120850-73a1-4df5-a074-d463258c9deb",
"design": "VisaCorporate",
"payment_system": "Visa",
"delivery_provider": "DHL",
"delivery_id": 12345,
"delivery_address": {
"line1": "10 Downing Street",
"line2": "Flat 2",
"city": "London",
"state": "",
"postal_code": "SW1A 2AA",
"country": "GB"
}
}| Field | Type | Required | Description |
|---|---|---|---|
design | string | No | Design from offerings[].designs. Omitted: the first design of the offering in effect — see below |
card_program | string | No | Card program from offerings[].card_programs. Omitted: the first program of the offering in effect, or none when the offering lists none |
payment_system | string | No | Visa or MasterCard, case-insensitive. Omitted: Visa when any offering for the billing country is Visa, otherwise the scheme of the first offering |
delivery_id | integer | Conditional | Required when fees are enforced and the order is priced above zero. Ignored when fees are not enforced |
delivery_provider | string | Conditional | Plastic only. Required when fees are enforced. Defaults to DHL when fees are not enforced |
delivery_address | object | Yes for plastic | As in v1. Its country is the country the fee is priced for |
card_name, name_on_card, employee_id | As in v1 |
How the defaults are filled. The scheme is settled first. The offering in effect is then the
first offering of that scheme, for the billing country and format, that carries the design or
card_program you named — or, when you named neither, the first offering that lists any. Whatever you
left out is filled from that one offering, so the design and program always come from the same product.
Named values are not checked against
GET /api/v3/cards/configbefore the order is placed. They
are forwarded to the card issuer as sent:
- A
designthe issuer does not hold for the format fails the order with500and
Request failed due to external server failure; the issuer's reason —
Incorrect card design '<design>' for format 'Virtual'— is inerror_details. No card is created.- A
payment_systemorcard_programoutside the configuration can be accepted and issued: in
sandbox,"payment_system": "MasterCard"on a Visa-only configuration issued a MasterCard card
carrying the Visa design, and an unknowncard_programwas recorded on the card verbatim.Send only values read from the configuration, and only in the combinations an offering lists.
Response:
{
"id": "64120850-73a1-4df5-a074-d463258c9deb"
}| Field | Description |
|---|---|
id | The card id. Every card endpoint takes it as {cardId} |
The issued card reports what it was issued with in card_data.design and card_data.card_program — see
Read the Issued Card.
Code
const response = await fetch(`${baseUrl}/api/v3/cards/virtual`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${corporationToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
card_name: 'Marketing team card',
employee_id: employeeId,
design: offering.designs[0],
payment_system: offering.payment_system,
delivery_id: deliveryId // omit unless fees are enforced and the order is priced above zero
})
});
const { id: cardId } = await response.json();response = requests.post(
f"{base_url}/api/v3/cards/virtual",
headers={
"Authorization": f"Bearer {corporation_token}",
"Content-Type": "application/json",
},
json={
"card_name": "Marketing team card",
"employee_id": employee_id,
"design": offering["designs"][0],
"payment_system": offering["payment_system"],
"delivery_id": delivery_id, # omit unless fees are enforced and the order is priced above zero
},
)
card_id = response.json()["id"]body, _ := json.Marshal(map[string]interface{}{
"card_name": "Marketing team card",
"employee_id": employeeID,
"design": offering.Designs[0],
"payment_system": offering.PaymentSystem,
"delivery_id": deliveryID, // omit unless fees are enforced and the order is priced above zero
})
req, _ := http.NewRequest("POST", baseURL+"/api/v3/cards/virtual", bytes.NewBuffer(body))
req.Header.Set("Authorization", "Bearer "+corporationToken)
req.Header.Set("Content-Type", "application/json")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var issueResp struct {
Id string `json:"id"`
}
json.NewDecoder(resp.Body).Decode(&issueResp)Design in v1 and v2
v1 and v2 take no design, card_program or payment_system. Their cards are issued with your
company's default design and card program. Use v3 to choose them.
Linking a Card to an Employee
employee_id is optional. It has three consequences, and all three are decided at issuance:
- Visibility. An employee without
SuorCardSusees only the cards linked to them. An
unlinked card is invisible to everyone but a card administrator. - The name on the card. The embossed name becomes the employee's
"<first_name> <last_name>", truncated to 25 characters, and thename_on_cardfield in the
request is ignored. This applies whenever the employee record carriesfirst_name,
last_name,emailandphone— all four are required at invite, so it applies to every
employee.name_on_cardis used as sent only when noemployee_idis linked. - The billing address. With a complete employee record, the cardholder payload also carries the
corporation's legal address as the billing address. A corporation with no legal address on record
fails issuance with400 ErrorMissingFieldand
Failed to determine billing address for the card.
The employee is validated before the fee is charged, so a foreign or unknown employee_id fails
without spending delivery_id. An employee_id from another corporation returns 401 with
Employee does not belong to corporation.
To emboss a corporate name such as
Acme Inc IT, leaveemployee_idunset. A linked employee
always overridesname_on_card, and the card is then invisible to everyone withoutCardSu— that
is the trade-off, and it cannot be changed after issuance.
Field Validation
| Field | Required | Validation (regex) | Notes |
|---|---|---|---|
card_name | No | ^[a-zA-Z0-9]+[a-zA-Z0-9\-':+#& ]{1,50}$ | Must start alphanumeric; 2–51 characters overall |
name_on_card | No | ^[A-Za-z][A-Za-z .'-]{1,25}$ | Starts with a letter; 2–26 characters. No digits |
delivery_address.line1, .line2 | Yes / No | ^[A-Za-z0-9&.,'’\-/() :+#]{2,100}$ | 2–100 characters |
delivery_address.city | Yes | ^[A-Za-z\s\-'.]{2,100}$ | Letters only — a city containing a digit is rejected |
delivery_address.state | No | ^[A-Za-z][A-Za-z\s\-']{1,99}$ | Letters only |
delivery_address.postal_code | Yes | ^[A-Za-z0-9\s\-]{3,12}$ | 3–12 characters |
delivery_address.country | Yes | ^[A-Z]{2}$ | Uppercase ISO 3166-1 alpha-2 |
postal_codeis always required, including for countries that have no postal code. Send a
placeholder that matches the pattern, e.g."00000". Only the format is validated, not real postal
validity.
The field is
postal_codeon the way in andzip_codeon the way out. The issuance request takes
delivery_address.postal_code; the card returned byGET /api/v1/cardsreports the same value as
delivery_address.zip_code. Map between them explicitly.
Address validation is format-only. An address that passes here can still be rejected by the card
processor, in which case the issuance call returns a synchronous 400 — no card is created and no card
webhook is sent.
Read the Issued Card
Two v3 reads return cards with what they were issued with. They take the same permissions and return the
same card object as GET /api/v1/cards, and they work for cards issued through any version.
| Endpoint | Returns | Permissions |
|---|---|---|
GET /api/v3/cards | The cards the caller may see, on every chain — GET /api/v1/cards lists only the cards of the chain in the corporation token | CardSu or CardView |
GET /api/v3/cards/{cardId} | One card | CardSu or CardView |
GET /api/v3/cards takes the same query parameters as the v1 list — employee_id, page_number,
page_size — with the same visibility rules: a caller without Su or CardSu sees only the cards
linked to their own employee record, and their employee_id filter is ignored. page_number starts
at 0; page_size defaults to 25 and is capped at 50.
GET /api/v3/cards/{cardId}
Path parameters:
| Parameter | Description |
|---|---|
{cardId} | The id returned by the issuance call |
Response:
{
"id": "64120850-73a1-4df5-a074-d463258c9deb",
"card_wallet_address": "0xAAFF0821A09A1Aac28B72dD3Ff410A7ea5FEb874",
"status": "Active",
"limit": {
"daily_limit": -1,
"daily_usage": 0,
"monthly_limit": -1,
"monthly_usage": 0,
"transaction_limit": -1,
"currency": "EUR"
},
"allowed_actions": [
{ "type": "Block", "relative_path": "/api/v1/cards/:cardId/block" },
{ "type": "SetLimit", "relative_path": "/api/v1/cards/:cardId/limit" },
{ "type": "GetDetails", "relative_path": "/api/v1/cards/:cardId/details" },
{ "type": "GetCvv", "relative_path": "/api/v1/cards/:cardId/cvv" },
{ "type": "Close", "relative_path": "/api/v1/cards/:cardId/close" }
],
"created_at": "2024-01-01T10:00:00Z",
"updated_at": "2024-01-01T10:00:01Z",
"card_data": {
"name_on_card": "Acme Inc IT",
"payment_system": "Visa",
"card_number_last_4": "5678",
"expiry_date": "01/28",
"format": "Virtual",
"design": "VisaPlatinum",
"card_program": "WIREX_ATM_EU",
"region": "GB",
"card_name": "Marketing team card"
}
}The card object is described in Card Details. The three fields that record
the order:
| Field | Description |
|---|---|
card_data.design | Design the card was issued with. Omitted for a card issued before designs were recorded |
card_data.card_program | Card program the card was issued on. Omitted when the order carried none |
card_data.region | Region of the card as the card issuer reports it — an issuer value such as GB or Europe, not a fixed set. Omitted when the issuer reports none |
All three are also present on the cards of GET /api/v1/cards. The card webhook
(/v2/webhooks/cards) does not carry them — read the card after a webhook when you need them.
A card of another corporation, and a card a non-administrator is not linked to, both return
400 ErrorNotFoundwithCard not found— the response does not reveal whether the card exists.
const response = await fetch(`${baseUrl}/api/v3/cards/${cardId}`, {
headers: { 'Authorization': `Bearer ${corporationToken}` }
});
const card = await response.json();response = requests.get(
f"{base_url}/api/v3/cards/{card_id}",
headers={"Authorization": f"Bearer {corporation_token}"},
)
card = response.json()req, _ := http.NewRequest("GET", baseURL+"/api/v3/cards/"+cardId, nil)
req.Header.Set("Authorization", "Bearer "+corporationToken)
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
var card CardResponse
json.NewDecoder(resp.Body).Decode(&card)What Happens Next
- The card is created in status
Requested. - A virtual card moves to
Activeonce the processor completes issuance. A plastic card moves to
NotActivatedand must be activated on arrival — see Managing a Card. - Each transition is delivered to
POST {your_webhook_base_url}/v2/webhooks/cards. card_data.card_number_first_4is present while the card isRequestedorNotActivated;
card_number_last_4andexpiry_dateappear once it is past those states.
Error Handling
{
"error_reason": "ErrorNotSupported",
"error_description": "You have no card order/delivery fees to pay",
"error_category": {
"category": "CategoryValidationFailure",
"http_status_code": 400
},
"error_details": [
{ "key": "field", "details": "fees_enforced" }
]
}Validation Errors (400)
| Error Reason | Error Details | Description | Resolution |
|---|---|---|---|
ErrorNotSupported | field: fees_enforced | You have no card order/delivery fees to pay | Fees are not enforced. Skip the fee endpoints and issue directly |
ErrorNotSupported | field: company_id | Card issuance is not supported for this company | No card configuration exists for your company. Contact Wirex |
ErrorNotFound | field: type, field: country | No fees found for specified country and method | The format is not offered in that country |
ErrorMissingField | field: delivery_provider | delivery provider is required for physical cards | Send a provider value from GET /api/v1/cards/delivery/methods/{country} |
ErrorInvalidField | field: type | Invalid value for type | Use Plastic, Virtual or Metal |
ErrorInvalidField | field: country | Invalid format for country | Uppercase two-letter code |
ErrorMissingField | field: delivery_address.line1 | Delivery address incomplete | Send every required address field |
ErrorInvalidField | field: delivery_address.city | City contains disallowed characters | Letters, spaces, hyphens, apostrophes and periods only |
ErrorGeneral | delivery_id | Delivery ID is required and must be positive | v2: fees are enforced. Create a v2 invoice and pass its delivery_id |
ErrorGeneral | delivery_id | This card order is priced above zero and must carry the delivery returned by the fees invoice endpoint | v3: the order costs something. Create a v2 invoice and pass its delivery_id |
ErrorGeneral | payment_system | Payment system must be one of Visa, MasterCard | v3: send Visa or MasterCard, or omit the field |
ErrorGeneral | employee_id | Employee id is invalid, must be a valid UUID | Send the employee's UUID |
ErrorNotSupported | company_config, company_id | Request failed validation — Used company does not support card issuance | Plastic: no card configuration exists for your company. Contact Wirex |
ErrorGeneral | card_name | Cards name is invalid | Match the card_name pattern |
ErrorGeneral | name_on_card | Name on card is invalid | Match the name_on_card pattern |
ErrorMissingField | — | Failed to determine billing address for the card | The corporation has no legal address. Complete KYB |
ErrorMissingField | field: payment_transaction_hash | payment transaction hash is required | v1, fees enforced, order priced above zero. Pay the invoice and send the hash |
ErrorMissingField | field: corporation_legal_address | Failed to determine the country the card is issued in | v1 virtual, fees enforced: the corporation has no legal address to price the fee for. Complete KYB |
ErrorGeneral | — | Capability is not active | VisaVirtualCard or VisaPlasticCard is not Active |
ErrorNotFound | field: card_id | Card not found | GET /api/v3/cards/{cardId}: the card belongs to another corporation, or the caller is not linked to it |
ErrorInvalidField | field: card_id, issue: invalid_uuid | card id must be a valid UUID | GET /api/v3/cards/{cardId}: send the card's UUID |
ErrorGeneral | CardId: Must not be empty, failed_method: TryGetCardV2 | Request failed validation | GET /api/v3/cards/{cardId} with a well-formed id that matches no card. Treat it as not found |
ErrorInvalidField | field: page_size, max: 50 | page size exceeds maximum allowed | Card lists: request at most 50 per page |
Authorization Errors (401, 403)
| HTTP | Error Reason | Description | Resolution |
|---|---|---|---|
| 401 | ErrorGeneral | Employee does not belong to corporation | The employee_id belongs to another corporation |
| 403 | ErrorPermissionDenied | User does not have required permissions | Issuance requires CardSu or CardCreate |
Server Errors (500)
| Error Reason | Description | Resolution |
|---|---|---|
ErrorNotFound | Order fees not found | No fee configuration for that format and country |
ErrorNotFound | Delivery fees not found | No delivery configuration for that country and provider |
ErrorGeneral | Requested payment token not found | token_address is not in the catalogue |
ErrorGeneral | Rate for requested payment token not found | No rate for the fee currency against that token. Choose another token |
ErrorGeneral | Error processing delivery payment | v1: the payment_transaction_hash was rejected — not found, already used, or for the wrong amount. Pay a fresh invoice |
ErrorGeneral | Failed to issue virtual card / Failed to issue plastic card | The processor rejected the order — on v2 and v3 this includes a delivery_id that is expired, already used or unfunded. No card was created and no webhook is sent. Create a new invoice before retrying |
ErrorGeneral | Request failed due to external server failure | The card issuer refused the order — on v3, typically a design it does not hold for the format; its reason is in error_details. No card was created. Send a value from GET /api/v3/cards/config |
ErrorGeneral | Failed to price the card order | v3, fees enforced, no delivery_id: the price could not be read, so the order is refused rather than issued unpriced. Nothing was ordered. Retry, or send a delivery_id |
ErrorGeneral | Card order returned no card | The order returned no card. Read GET /api/v3/cards before retrying, to avoid a second card |
ErrorNotFound | Card configuration not found | v2 and v3. No card configuration exists for your company. Contact Wirex. On v1 the same error is a 400 with field: company_id |
ErrorGeneral | Failed to link card to employee | The card was issued but not linked. Read GET /api/v1/cards as a card administrator to find it |
ErrorConfigurationInvalid | Card configuration is missing | Platform configuration error. Contact Wirex |
Failed to link card to employeemeans the card exists. It is not visible to the employee and
cannot be re-linked through the API — there is no link endpoint. Retrying issuance creates a second
card.
Updated 8 days ago

