OpenPermit Docs
ReferenceApi

Create onchain payment execution transaction plan

POST
/api/v1/onchain/payments/execution-plan

Authorization

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

authorizationId*string
chain?string
contractAddress?string
tokenAddress?string
tokenDecimals?integer
payeeAddress?string

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/onchain/payments/execution-plan" \  -H "Content-Type: application/json" \  -d '{    "authorizationId": "string"  }'
{  "planId": "string",  "paymentPath": "onchain",  "settlementMode": "offchainAuthorized",  "mandateId": "string",  "authorizationId": "string",  "intentId": "string",  "chain": "string",  "contractAddress": "string",  "action": "registerMandate",  "calls": [    {      "contractAddress": "string",      "functionName": "string",      "args": {},      "value": "0",      "data": "string"    }  ],  "feeQuote": {    "feeQuoteId": "string",    "feeScheduleId": "string",    "buyerOrganizationId": "string",    "sellerOrganizationId": "string",    "settlementMode": "offchainAuthorized",    "paymentPath": "offchain",    "paymentMethod": "x402",    "chain": "string",    "asset": "string",    "grossAmount": "string",    "sellerNetAmount": "string",    "openPermitFeeAmount": "string",    "providerFeeAmount": "0",    "networkFeeAmount": "0",    "feePayer": "buyer",    "feeRecipient": "string",    "feeScheduleHash": "string",    "expiresAt": "string",    "createdAt": "string",    "metadata": {}  },  "expiresAt": "string",  "metadata": {}}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string",  "errors": [    {      "detail": "string",      "pointer": "string"    }  ]}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}
{  "type": "about:blank",  "title": "string",  "status": 0,  "detail": "string",  "instance": "string",  "requestId": "string",  "code": "string"}