curl --request POST \
--url https://api.pinata.cloud/v3/x402/payment_instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<string>",
"description": "<string>"
}
],
"description": "<string>"
}
'{
"data": {
"id": "<string>",
"version": 123,
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<string>",
"description": "<string>"
}
],
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}Creates a new payment instruction
curl --request POST \
--url https://api.pinata.cloud/v3/x402/payment_instructions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<string>",
"description": "<string>"
}
],
"description": "<string>"
}
'{
"data": {
"id": "<string>",
"version": 123,
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<string>",
"description": "<string>"
}
],
"name": "<string>",
"description": "<string>",
"created_at": "2023-11-07T05:31:56Z"
}
}Pinata API JWT token
Name of the payment instruction
1Show child attributes
Token contract address (must start with 0x)
Ethereum address to receive payment (must start with 0x)
Network for payment
base, base-sepolia Maximum amount required for payment
Optional description
255Description of the payment instruction
Successful operation
Show child attributes
Unique identifier
Version number
Show child attributes
Token contract address (must start with 0x)
Ethereum address to receive payment (must start with 0x)
Network for payment
base, base-sepolia Maximum amount required for payment
Optional description
255Name of the payment instruction
Description of the payment instruction
Creation timestamp