This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
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
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"
  ]
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/payment/bulk', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "payments": [
      {
        "user": "sample-user",
        "title": "sample-title",
        "transactionDate": "2024-01-21T12:00:00Z",
        "currency": "sample-currency",
        "amount": 1,
        "amountUSD": 1,
        "conversionRate": 1,
        "memo": "sample-memo"
      }
    ]
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Show child attributes