PaymentRequirement
Defines a single payment requirement within a payment instruction.| Property | Type | Description |
|---|---|---|
asset | string | The USDC token contract address for the network (e.g., 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 for Base) |
pay_to | string | The wallet address to receive payments |
network | "base" | "base-sepolia" | "eip155:8453" | "eip155:84532" | The blockchain network for transactions. Accepts friendly names or EIP-155 chain IDs |
amount | string | The amount required in USDC smallest units (6 decimals). Example: "10000" = $0.01 |
description | string | Optional description for this requirement |
PaymentInstruction
Represents a complete payment instruction with all its requirements.| Property | Type | Description |
|---|---|---|
id | string | Unique identifier for the payment instruction |
version | number | Version number of the instruction |
payment_requirements | PaymentRequirement[] | Array of payment requirements |
name | string | Name of the payment instruction |
description | string | Optional description |
created_at | string | ISO timestamp of creation |
CreatePaymentInstructionRequest
Request body for creating a new payment instruction.UpdatePaymentInstructionRequest
Request body for updating an existing payment instruction.PaymentInstructionListQuery
Query parameters for listing payment instructions.| Property | Type | Description |
|---|---|---|
limit | number | Maximum number of results to return |
pageToken | string | Pagination token for next page |
cid | string | Filter by associated CID |
name | string | Filter by instruction name |
id | string | Filter by instruction ID |
PaymentInstructionListResponse
Response structure for listing payment instructions.PaymentInstructionResponse
Response structure for single payment instruction operations.PaymentInstructionDeleteResponse
Response structure for delete operations.CidListQuery
Query parameters for listing CIDs associated with a payment instruction.CidListResponse
Response structure for listing CIDs.CidAssociation
Represents a CID associated with a payment instruction.| Property | Type | Description |
|---|---|---|
payment_instruction_id | string | ID of the associated payment instruction |
cid | string | The IPFS CID |
created_at | string | ISO timestamp of when the association was created |