Skip to main content
POST
/
api
/
catalogs
cURL
curl --request POST \
  --url https://api.recoupable.com/api/catalogs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "catalogs": [
    {
      "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "catalog_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ]
}
'
{
  "status": "success",
  "catalogs": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "error": "<string>"
}
If catalog_id is provided, the existing catalog is linked to the account. If name is provided without catalog_id, a new catalog is created. If both are provided, catalog_id takes priority.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Array of catalogs to create or link

catalogs
object[]
required

Array of catalog inputs for bulk create/link operations

Response

Catalogs created or linked successfully

Response containing catalogs data

status
enum<string>

Status of the request

Available options:
success,
error
catalogs
object[]

Array of catalog objects

error
string

Error message (only present if status is 'error')