1๏ธโƒฃ
Walleo API
  • ๐Ÿ––Welcome!
  • ๐Ÿ› ๏ธQuick Start
  • ๐ŸงชEnvironments
  • Partners API
    • ๐Ÿ”“Authentication
    • ๐ŸššPulling a card - Asynchronous call
    • ๐ŸššPulling a card - Synchronous call
    • ๐Ÿ“–API Reference
      • Gift Cards
      • Cards
      • Pull Requests
      • Inventories
      • Balance
Powered by GitBook
On this page
  • Create new card synchronously
  • Create card.
  • Show card
  • Show card.
  1. Partners API
  2. API Reference

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
  } 
}
Name
Type
Description

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"
}

{
  "errors": [                       
    {
      "code": "not_enough_funds",            
      "message": "Your balance account is not high enough" 
    }                                            
  ],                                             
  "status": "unprocessable_entity"               
}

{
  "errors": [                       
    {
      "code": "out_of_stock",            
      "message": "Out of stock gift card 'IKEA-FR'" 
    }                                            
  ],                                             
  "status": "unprocessable_entity"               
}

{
  "errors": [                       
    {
      "code": "invalid_amount",            
      "message": "Amount must be one of 15, 30 or 100." 
    }                                            
  ],                                             
  "status": "unprocessable_entity"               
}

{
  "errors": [                       
    {
      "code": "invalid_amount",            
      "message": "Amount must be within range from 20 to 500 with steps of 10." 
    }                                            
  ],                                             
  "status": "unprocessable_entity"               
}
{
  "errors": [
    {
      "code": "unauthorized",
      "message": "Not authorized"
    }
  ],
  "status": "unauthorized"
}
{
  "errors": [
    {
      "code": "invalid_signature",
      "message": "Your request does not match your signature"
    }
  ],
  "status": "unauthorized"
}

Show card

Show card.

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

Show card details.

Path Parameters

Name
Type
Description

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"
}
PreviousGift CardsNextPull Requests

Last updated 1 year ago

๐Ÿ“–