Skip to main content
POST
/
payment
/
request
/
new
cURL
curl --request POST \
  --url https://api.otim.com/payment/request/new \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "signedAuthorization": "<string>",
  "completionInstructions": [
    {
      "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
      "chainId": 11155111,
      "salt": 1234567890,
      "maxExecutions": 10,
      "action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
      "arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "activationSignature": {
        "yParity": 0,
        "r": "0x...",
        "s": "0x..."
      },
      "nickname": "My cool instruction"
    }
  ],
  "instructions": [
    {
      "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
      "chainId": 11155111,
      "salt": 1234567890,
      "maxExecutions": 10,
      "action": "0x838c90f3e8d4892dCfA67721CbbA7C86D3C059ef",
      "arguments": "0x0000000000000000000000001c7d4b196cb0c7b01d743fbc6116a902379c72380000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000a0Ee7A142d267C1f36714E4a8F75612F20a79720000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
      "activationSignature": {
        "yParity": 0,
        "r": "0x...",
        "s": "0x..."
      },
      "nickname": "My cool instruction"
    }
  ]
}'
Create a new payment request.

Authorizations

Authorization
string
header
required

JWT token for API authentication

Body

application/json
requestId
string<uuid>
required

Payment request ID

signedAuthorization
string
required

RLP encoded signed authorization

completionInstructions
object[]
required

Completion instructions

instructions
object[]
required

Instructions

Response

201

Payment request created successfully