Payouts
Create a Payout
POST
https://cirro.io/api/v2/payoutsParameters
| Parameter | Type | Note | |
|---|---|---|---|
amount | required | number | Amount of payout |
title | required | string | Title of the payout |
user_id | required | string | ID of the associated user |
cost_center_key | required | string | A EPAM project code for book keeping in finance. It is required if cost_center_data is not given |
cost_center_data | required | object (See below) | A json object containing customer details. It is required if cost_center_key is not given |
description | string | Description of the payout | |
billing_date | string | %Y-%m-%d format; When did the worker perform the work, by default it equals to the creation time of the payout | |
reference_id | string | ID of the associated reference e.g. gig | |
reference_type | string | Type of the associated reference e.g. Gig | |
idempotency_key | string | The API supports idempotency for safely retrying requests without accidentally performing the same operation twice |
Cost Center Data Parameters
| Parameter | Type | Note | |
|---|---|---|---|
legal_entity | required | string | The legal entity of the customer |
inhouse | required | string | Yes or No |
customer_id | string | External ID of customer. At least one of customer_id or epam_project_code is required | |
epam_project_code | string | EPAM project code. At least one of customer_id or epam_project_code is required | |
company | string | Required if customer_id is provided |
Description
Returns the Payout object if creation succeeded.
Example
1client = CirroIOV2::Client.new(...)
2client.Payout.create(
3 "amount": 1000,
4 "currency": "USD",
5 "title": "The Golden Bowl",
6 "description": "Language designers want to design the perfect language. They want to be able to say, 'My language is perfect. It can do everything.' But it's just plain impossible to design a perfect language, because there are two ways to look at a language. One way is by looking at what can be done with that language. The other is by looking at how we feel using that language-how we feel while programming.",
7 "billing_date": "2022-06-15",
8 "cost_center_key": "EPM-CRWD",
9 "user_id": 1
10)