⚙️
API Docs
  • Welcome!
  • Quick Start
  • Reference
    • API Reference
      • Plaque Lookup API
      • Plaques Prepare API
      • Owner Username API
      • Featured Plaques API
      • Latest contract API
      • Plaques List API
      • Buy Plaque API
      • Stage Wallet Authentication API
      • Email Verification API
      • Request For Private Key API
      • Private Key API
      • Orders Statistics API
      • User Profile API
    • Blockchain Smart-Contract
      • Plaque Price Method
      • Check mintTranfer Method
      • MintTransfer method
      • Token Owners Method
Powered by GitBook
On this page
  1. Reference
  2. API Reference

Buy Plaque API

The Buy Plaque API allows a user to buy a plaque by providing payment information and personal details. The API uses the HTTP POST method to send a request to the server and HTTP response codes to return the status of the request.

Buy Plaque API

POST https://api.stagemeta.dev/plaques/buy

Headers

Name
Type
Description

Authorization

String

Bearer ACCESS_TOKEN

Request Body

Name
Type
Description

names*

[String]

card_number*

String

expire_month*

Number

expire_year*

Number

cvv*

String

country*

String

city*

String

state*

String

postal_code*

String

first_name*

String

last_name*

String

line1*

String

line2

String

username

String

email

String

walletAddress

String

{
  "hash": "0x0000000000000000000000000000000000000000000000000"
}

curl -X 'POST' \
  'https://api.stagemeta.dev/plaques/buy' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "names": [
    "TPA-000"
  ],
  "card_number": "1234567890123456",
  "expire_month": 10,
  "expire_year": 25,
  "cvv": "123",
  "country": "US",
  "city": "New York",
  "state": "NY",
  "postal_code": "10001",
  "first_name": "John",
  "last_name": "Doe",
  "line1": "123 Main St.",
  "line2": "",
  "username": "johndoe",
  "email": "johndoe@example.com",
  "walletAddress": "0x1234567890abcdef"
}'
fetch('https://api.stagemeta.dev/plaques/buy', {
  method: 'POST',
  headers: {
    'Accept': 'application/json',
    'Authorization': 'Bearer ACCESS_TOKEN',
    'Content-Type': 'application/json'
  },
  body:{
    "names": [
      "TPA-000"
    ],
    "card_number": "1234567890123456",
    "expire_month": 10,
    "expire_year": 25,
    "cvv": "123",
    "country": "US",
    "city": "New York",
    "state": "NY",
    "postal_code": "10001",
    "first_name": "John",
    "last_name": "Doe",
    "line1": "123 Main St.",
    "line2": "",
    "username": "johndoe",
    "email": "johndoe@example.com",
    "walletAddress": "0x1234567890abcdef"
  }
})
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error(error));
PreviousPlaques List APINextStage Wallet Authentication API

Last updated 2 years ago