Cards

Create new card synchronously

Create card.

POST https://api.walleo.io/partners/v1/cards

Creates a new card synchronously.

Request Body

{ 
  "card": { 
    "amount": amount,
    "gift_card_code": code
  } 
}
NameTypeDescription

amount*

integer

The amount of the gift card

gift_card_code*

string

The code of the gift card

Response

{
  "card": {
    "id": "4fe88e46-eb22-436c-91ec-6bf874fcf2ae",
    "code": "345454545451154154",
    "expire_at": "2022-06-24T00:00:00.000+02:00",
    "pin_code": "1234",
    "amount": 50,
    "gift_card_code": "IKEAFR",
    "pdf_url": "https://url.pdf"
  }
}

Errors

{
  "errors": [
    {
      "code": "gift_card_not_found",
      "message": "Gift card not found with code 'IKEA-FR'"
    }
  ],
  "status": "not_found"
}

Show card

Show card.

GET https://api.walleo.io/partners/v1/cards/:id

Show card details.

Path Parameters

NameTypeDescription

id*

String

ID of the card

Response

{
  "card": {
    "id": "4fe88e46-eb22-436c-91ec-6bf874fcf2ae",
    "code": "345454545451154154",
    "expire_at": "2022-06-24T00:00:00.000+02:00",
    "pin_code": "1234",
    "amount": 50,
    "gift_card_code": "IKEA",
    "pdf_url": "https://url.pdf"
  }
}

Errors

{
  "errors": [
    {
      "code": "card_not_found",
      "message": "Card not found with id '4fe88e46-eb22-436c-91ec-6bf874fcf2ae'"
    }
  ],
  "status": "not_found"
}

Last updated