POST
/
v1
/
accounts
/
{account_id}
/
capability_requests
curl --request POST \
  --url https://{environment}.straddle.io/v1/accounts/{account_id}/capability_requests \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "charges": {
    "enable": true,
    "max_amount": 123,
    "daily_amount": 123,
    "monthly_count": 123,
    "monthly_amount": 123
  },
  "payouts": {
    "enable": true,
    "max_amount": 123,
    "daily_amount": 123,
    "monthly_count": 123,
    "monthly_amount": 123
  },
  "internet": {
    "enable": true
  },
  "individuals": {
    "enable": true
  },
  "businesses_dto": {
    "enable": true
  },
  "signed_agreement_dto": {
    "enable": true
  }
}'
{
  "meta": {
    "api_request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "api_request_timestamp": "2023-11-07T05:31:56Z",
    "total_items": 123,
    "page_number": 123,
    "page_size": 123,
    "max_page_size": 123,
    "sort_by": "<string>",
    "sort_order": "asc"
  },
  "response_type": "object",
  "data": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "charges",
      "category": "payment_type",
      "settings": {},
      "status": "approved",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Enter 'Bearer ' [space] and then your token in the text input below.

Headers

request-id
string

Optional client generated identifier to trace and debug a request.

correlation-id
string

Optional client generated identifier to trace and debug a series of requests.

Path Parameters

account_id
string
required

Body

charges
object
payouts
object
internet
object
individuals
object
businesses_dto
object
signed_agreement_dto
object

Response

201
text/plain
Created
meta
object
required
response_type
enum<string>
required

Indicates the type of data returned.

Available options:
object,
array,
error,
none
data
object[]
required