Orders
Pay Order
Pay for an order using USDC on the StateSet Commerce Network
POST
Overview
This endpoint processes USDC payments for orders on the StateSet Commerce Network. The payment is executed through smart contracts, ensuring secure and transparent transactions.
Body
The unique identifier of the order to be paid
Payment method details for USDC payment
Additional metadata for the payment
Response
Indicates whether the payment was successful
Transaction details
Payment details
Updated order details
Request Example
Response Example
Error Codes
Code | Description |
---|---|
INSUFFICIENT_FUNDS | The wallet does not have enough USDC to complete the payment |
ORDER_NOT_FOUND | The specified order ID does not exist |
ORDER_ALREADY_PAID | The order has already been paid |
INVALID_WALLET_ADDRESS | The provided wallet address is invalid |
PAYMENT_EXPIRED | The payment window for this order has expired |
NETWORK_ERROR | There was an error communicating with the blockchain |
SMART_CONTRACT_ERROR | The smart contract execution failed |
Notes
- All payments are processed on the StateSet Commerce Network blockchain
- USDC amounts must be specified as strings to avoid floating-point precision issues
- The payment is atomic - either the entire payment succeeds or it fails completely
- Gas fees are paid in STATE tokens, not USDC
- Payments are final and cannot be reversed through the API (refunds must be processed separately)