1. Cards
Payland Card
  • Authentication
  • Users
    • Create User
      POST
    • Get User
      GET
    • City Codes
      GET
  • Cards
    • Create Card
      POST
    • Get Card
      GET
    • Load Funds
      POST
    • Card Transactions
      GET
    • Freeze Card
      POST
    • Unfreeze Card
      POST
    • Card Details
      GET
    • Delete Card
      DELETE
  • Webhooks (Payland → your server)
    • SIMULATE card.created
      POST
    • SIMULATE card.creation_failed
      POST
  1. Cards

Create Card

POST
/api/v1/cards
user_id = the usr_... ID returned by Create User (required — it determines which user the card belongs to).
ASYNC: the card fee is reserved from your tenant balance immediately and the response is 202 Accepted with status: "pending" — the response contains no PAN and no masked PAN yet. The card is issued on our queue; when it completes you receive a card.created webhook (or card.creation_failed — see the Webhooks folder), or poll GET /cards/{id} until pending becomes active/failed.
If your balance is insufficient, the request fails immediately and synchronously (422 insufficient_balance) — nothing is queued.
If the provider declines, the fee is refunded automatically and the card becomes failed (webhook card.creation_failed, data.reason).
Replaying the same Idempotency-Key returns the stored first 202 — the card is NOT reserved twice.
⚠️ PAN/CVV are only ever available from GET /cards/{id}/details (once the card is active).
Mock scenario: if the user's first_name="DECLINE" → webhook card.creation_failed (reason: card_declined).

Request

Header Params

Body Params application/json

Examples

Responses

🟢202
application/json
Bodyapplication/json

🟠404
🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://api.paylandcard.com/api/v1/cards' \
--header 'X-Api-Key: {{api_key}}' \
--header 'X-Timestamp: {{timestamp}}' \
--header 'X-Signature: {{signature}}' \
--header 'Accept: application/json' \
--header 'Idempotency-Key: {{$guid}}' \
--header 'Content-Type: application/json' \
--data '{
    "user_id": "{{user_id}}",
    "currency": "USD"
}'
Response Response Example
202 - 202 — Accepted (pending — result via webhook)
{
    "data": {
        "id": "card_01kx0hqyr1v9ravmyhqdwzky7c",
        "user_id": "usr_01kx0hq7p3y52m0fbwn4gftzht",
        "brand": null,
        "masked_pan": null,
        "last4": null,
        "exp_month": null,
        "exp_year": null,
        "status": "pending",
        "balance": 0,
        "currency": "USD",
        "created_at": "2026-07-08T12:01:00+00:00"
    },
    "status": true
}
Modified at 2026-07-17 06:22:49
Previous
City Codes
Next
Get Card
Built with