Skip to main content
POST
/
misc-operations
Import a misc operation
curl --request POST \
  --url https://api.leanpay.fr/v1/public/misc-operations \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalId": "<string>",
  "defaultCurrencyAmount": 1,
  "amount": 1,
  "date": "2023-12-25",
  "currency": "<string>",
  "description": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenantId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "externalId": "<string>",
  "defaultCurrencyAmount": 123,
  "amount": 123,
  "currency": "<string>",
  "date": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Body

application/json

Misc operation object that need to be imported

clientId
string<uuid>
required
externalId
string
required
Maximum string length: 80
defaultCurrencyAmount
integer
required
Required range: x >= 0
amount
integer
required
Required range: x >= 0
date
string<date>
required
currency
string
required
Maximum string length: 3
description
string | null

Response

Returns the imported misc operation

id
string<uuid>
tenantId
string<uuid>
clientId
string<uuid>
externalId
string
defaultCurrencyAmount
integer
amount
integer
currency
string
date
string<date-time>
description
string | null
createdAt
string<date-time>
updatedAt
string<date-time>