curl --request POST \
--url https://api.plane.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"worker": "<string>",
"amount": "<string>",
"currency": "<string>",
"account": "<string>",
"date": "<string>",
"metadata": {},
"reference": "<string>",
"note": "<string>",
"period": {}
}
'{
"id": "pt_ogdEjSnSqNYxtW1sd3pC3hFX",
"worker": "wr_anqRSFcK36ie85",
"account": "acct_eWDutUkEc5WDzy3eoos1CZyA",
"amount": "1200.00",
"currency": "EUR",
"date": "2023-09-01",
"metadata": {},
"reference": "EV1S3GDM",
"note": "Payment for July",
"period": {
"starts": "2023-07-01",
"ends": "2023-07-31"
},
"funding": {
"amount": "1029.02",
"currency": "USD"
}
}
To send funds to a worker on Plane, you create a new payment object.
curl --request POST \
--url https://api.plane.com/v1/payments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"worker": "<string>",
"amount": "<string>",
"currency": "<string>",
"account": "<string>",
"date": "<string>",
"metadata": {},
"reference": "<string>",
"note": "<string>",
"period": {}
}
'{
"id": "pt_ogdEjSnSqNYxtW1sd3pC3hFX",
"worker": "wr_anqRSFcK36ie85",
"account": "acct_eWDutUkEc5WDzy3eoos1CZyA",
"amount": "1200.00",
"currency": "EUR",
"date": "2023-09-01",
"metadata": {},
"reference": "EV1S3GDM",
"note": "Payment for July",
"period": {
"starts": "2023-07-01",
"ends": "2023-07-31"
},
"funding": {
"amount": "1029.02",
"currency": "USD"
}
}
{
"id": "pt_ogdEjSnSqNYxtW1sd3pC3hFX",
"worker": "wr_anqRSFcK36ie85",
"account": "acct_eWDutUkEc5WDzy3eoos1CZyA",
"amount": "1200.00",
"currency": "EUR",
"date": "2023-09-01",
"metadata": {},
"reference": "EV1S3GDM",
"note": "Payment for July",
"period": {
"starts": "2023-07-01",
"ends": "2023-07-31"
},
"funding": {
"amount": "1029.02",
"currency": "USD"
}
}
Was this page helpful?