Create Payment order
Endpoint
POST {{base_url}}/create-order
Description
This API creates a new payment order based on the provided parameters. It supports P2P payments, merchant transactions, or dApp interactions.
Request
Headers
apikey
test
API key for authentication.
Content-Type
application/json
Indicates JSON payload.
Body Parameters
senderAddress
String
Yes
The address of the sender (e.g., wallet address).
receiverAddress
String
Yes
The address of the receiver (e.g., wallet address).
destinationChain
Integer
Yes
The chain ID for the destination blockchain.
destinationToken
String
No
The token address on the destination chain. Leave empty for native token.
amount
String
Yes
The amount of tokens to transfer.
orderType
String
Yes
The type of the order (e.g., p2p
).
minAmountOut
Float
No
The minimum acceptable amount out for the transaction.
action
String
No
Specific action to perform with the order (e.g., "swap").
sourceChain
Integer
No
The chain ID of the source blockchain.
sourceToken
String
No
The token address on the source chain.
Example Request
Example Response
Success (200)
Error (400)
Error (401)
Last updated
Was this helpful?