POST
/
payment
/
bulk
Create Bulk Payments
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/payment/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "payments": [
    {
      "user": "<string>",
      "title": "<string>",
      "transactionDate": "2023-11-07T05:31:56Z",
      "currency": "<string>",
      "amount": 123,
      "amountUSD": 123,
      "conversionRate": 123,
      "memo": "<string>"
    }
  ]
}'
{
  "message": "Bulk payment creation completed",
  "createdPayments": [
    "Payment One",
    "Payment Two"
  ],
  "processedCount": 3,
  "errors": [
    "Invalid currency for Payment Three"
  ]
}

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json

Response

201
application/json

Created with possible errors

The response is of type object.