post https://workflow-api.paymongo-stg.com/v1/workflows
Creates a new Workflow.
Beta testing phaseThis is not the final version of the product, and is still subject to change.
If you are interested in early access to this feature, please contact [email protected]!
This endpoint accepts a text/plain request body. To include your workflow definition, place it in the request body as raw text. For example, you have this workflow definition:
version: 1
name: "Send money to other merchant wallet"
description: "Send money from my wallet to another merchant wallet"
steps:
- send_money:
source:
type: "wallet"
account: "${merchant_account_number}"
account_name: "${merchant_account_name}"
destination:
type: "wallet"
account: "7754473456987"
account_name: "AnotherSubMerchant1"
bic: "PAEYPHM2XXX"
provider: "paymongo"
amount: "${net_amount}"
currency: "PHP"
notes: "Received money from Payout disbursement"version: 1
name: "send-money-to-bank"
description: "Send money to another merchant bank account"
steps:
- send_money:
source:
type: "wallet"
account: "${merchant_account_number}"
destination:
type: "bank"
account: "000010094477"
account_name: "Amazing Cookie Store"
bic: "UBPHPHMMXXX"
provider: "instapay"
amount: "${net_amount}"
currency: "PHP"
notes: "Payout Disbursement"Based on the example above, you can set the data in the cURL as follows:
--data 'version: 1
name: "Send money to other merchant wallet"
description: "Send money from my wallet to another merchant wallet"
steps:
- send_money:
source:
type: "wallet"
account: "${merchant_account_number}"
account_name: "${merchant_account_name}"
destination:
type: "wallet"
account: "7754473456987"
account_name: "AnotherSubMerchant1"
bic: "PAEYPHM2XXX"
provider: "paymongo"
amount: "${net_amount}"
currency: "PHP"
notes: "Received money from Payout disbursement"'--data 'version: 1
name: "send-money-to-bank"
description: "Send money to another merchant bank account"
steps:
- send_money:
source:
type: "wallet"
account: "${merchant_account_number}"
destination:
type: "bank"
account: "000010094477"
account_name: "Amazing Cookie Store"
bic: "UBPHPHMMXXX"
provider: "instapay"
amount: "${net_amount}"
currency: "PHP"
notes: "Payout Disbursement"'