Surepass
Stamps

Create stamp order

POST
/api/v1/stamps/create-order

Create a stamp procurement order and start the background procurement workflow.

  • This call is asynchronous, so a successful response does not mean stamps is populated yet. Poll GET /api/v1/stamps/order-status or GET /api/v1/stamps/list until instances become available.
  • Billing charges estamp_duty (stamp_duty_amount × quantity) plus estamp_fees (one per stamp). The request is rejected if the wallet balance is insufficient.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Bearer token authentication. Paste your access token below.

Request Body

application/json
  1. body
state_code*string

Supported stamp state code.

first_party_name*string

First party name printed on the stamp.

Length1 <= length <= 200
second_party_name*string

Second party name printed on the stamp.

Length1 <= length <= 200
article_id*string

Article ID; must be valid for state_code.

Length1 <= length <= 100
stamp_duty_amount*number

Stamp duty per stamp. Must be a whole number, greater than 0 and at most 1,000,000. Fractional values are rejected.

consideration_amount*number

Consideration amount for the underlying transaction.

Range0 < value
quantity*integer

Number of stamps to procure.

Range1 <= value <= 5000
description?string

Optional order description.

Lengthlength <= 500
first_party_address?string

Optional first party address.

Length1 <= length <= 500
mock?boolean

Route this order to the mock vendor backend. Defaults to false in production. Mock orders are not billed for stamp duty or platform fees.

Defaultfalse

Response Body

Order created; procurement continues in the background.

application/json
  1. response

Standard response envelope.

status_code?integer

HTTP status code echoed in the response body.

message?string

Human-readable result message.

success?boolean

true when the request succeeded.

data?

A stamp procurement order and its materialized instances.

Example Request
curl -X POST 'https://prod-esign-api-v2.surepass.app/api/v1/stamps/create-order' \
  -H 'Content-Type: application/json' \
  -d '{
  "state_code": "AN",
  "first_party_name": "Alice Test",
  "second_party_name": "Bob Test",
  "article_id": "2337",
  "stamp_duty_amount": 10,
  "consideration_amount": 1000,
  "quantity": 1
}'
Example Response
{
  "data": {
    "user_id": "user_RQJksjuRzdhRjejyOlhEI",
    "client_id": "stamp_pkHLyIzspuMWBMXizUSc",
    "created_at": "2026-04-18T16:35:21.123000",
    "state_code": "AN",
    "first_party_name": "Alice Test",
    "second_party_name": "Bob Test",
    "article_id": "2337",
    "stamp_duty_amount": "10",
    "consideration_amount": 1000,
    "description": null,
    "first_party_address": null,
    "quantity": 1,
    "mock": false,
    "stamps": []
  },
  "status_code": 200,
  "message": "Success",
  "success": true
}