x402 requirements
POST
/v1/x402/requirements
const url = 'https://api.flowpayra.com/v1/x402/requirements';const options = { method: 'POST', headers: { 'Idempotency-Key': 'example', 'X-Api-Key': '<X-Api-Key>', 'X-Signature': '<X-Signature>', 'X-Timestamp': '<X-Timestamp>', 'X-Nonce': '<X-Nonce>', 'Content-Type': 'application/json' }, body: '{"scheme":"exact","currency_id":"example","chain_id":"example","amount":"example","splits":[{"type":"percentage","merchant_id":"example","bps":1}],"resource":"https://example.com","user_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.flowpayra.com/v1/x402/requirements \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: example' \ --header 'X-Api-Key: <X-Api-Key>' \ --header 'X-Nonce: <X-Nonce>' \ --header 'X-Signature: <X-Signature>' \ --header 'X-Timestamp: <X-Timestamp>' \ --data '{ "scheme": "exact", "currency_id": "example", "chain_id": "example", "amount": "example", "splits": [ { "type": "percentage", "merchant_id": "example", "bps": 1 } ], "resource": "https://example.com", "user_id": "example" }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Idempotency-Key
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
scheme
string
currency_id
required
string
chain_id
required
string
amount
required
string
splits
resource
required
string format: uri
user_id
string
Responses
Section titled “Responses”Successful response
Media typeapplication/json
object
payment_id
required
string
accepts
required
Array<object>
object
scheme
required
string
network
required
string
asset
required
string
pay_to
required
string
max_amount_required
required
string
resource
required
string format: uri
nonce
required
string
valid_before
required
integer format: int64
extra
Example
{ "accepts": [ { "scheme": "exact" } ]}Stable API error
Media typeapplication/json
object
code
required
string
message
required
string
details
Examplegenerated
{ "code": "example", "message": "example", "details": "example"}Stable API error
Media typeapplication/json
object
code
required
string
message
required
string
details
Examplegenerated
{ "code": "example", "message": "example", "details": "example"}Stable API error
Media typeapplication/json
object
code
required
string
message
required
string
details
Examplegenerated
{ "code": "example", "message": "example", "details": "example"}Stable API error
Media typeapplication/json
object
code
required
string
message
required
string
details
Examplegenerated
{ "code": "example", "message": "example", "details": "example"}Stable API error
Media typeapplication/json
object
code
required
string
message
required
string
details
Examplegenerated
{ "code": "example", "message": "example", "details": "example"}