Skip to content

Create a payment link

Payments
POSThttps://api.dcdial.com/api/type=get_payment_link
PaymentsToken

Creates a secure payment link for an account. Send it yourself, or have DCDial text it to the account holder.

Set amount to fix the amount; add editable=Y to let the account holder change it. Payments show up in DCDial immediately and reduce the account balance.

Parameters

Send as application/x-www-form-urlencoded.

  • typestringrequired

    Selects the operation. Always get_payment_link for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • account_idstringrequired

    Your reference for the account (its accountid).

    Example ACC-10045
  • company_idintegerrequired

    Your DCDial company ID.

    Example 101
  • amountnumberoptional

    Amount to request. When set, the account holder cannot change it unless editable=Y.

    Example 150
  • editablestringoptional

    Y to let the account holder change the amount, N to lock it. Defaults to N.

    One ofYN
Terminal window
curl https://api.dcdial.com/api/ \
-d type=get_payment_link \
-d token="$DCDIAL_TOKEN" \
-d account_id=ACC-10045 \
-d company_id=101
Response · 200 OK
{
"response": {
"payment_link": "dclab.me/abc",
"account_id": "00000",
"success": "[1 or 0]"
}
}

Try it

Environment