curl --request PATCH \
--url https://api.pinata.cloud/v3/x402/payment_instructions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<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"
}
}Updates an existing payment instruction
curl --request PATCH \
--url https://api.pinata.cloud/v3/x402/payment_instructions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"payment_requirements": [
{
"asset": "<string>",
"pay_to": "<string>",
"network": "base",
"max_amount_required": "<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
Payment instruction ID
Name of the payment instruction
Description 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
255Successful 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