Skip to main content
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"
  ]
}
Create Bulk Payments Description:
The /payment/bulk endpoint allows creation of multiple payments simultaneously.
Method:
POST
Request Payload:
ParameterTypeDescription
paymentsarrayArray of payment objects

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
paymentsarray

Responses

✅ 201 - Created with possible errors

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Payment

Authorizations

Authorization
string
header
required

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

Body

application/json
payments
object[]
required

Response

Created with possible errors

message
string
createdPayments
string[]
processedCount
integer
errors
string[]
I