Skip to content

Get agreement document

Payments
POSThttps://api.dcdial.com/api/type=get_agreement_doc
Read onlyToken

Returns the signed agreement document: account holder details, payment schedule, terms and authorization.

Parameters

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

  • typestringrequired

    Selects the operation. Always get_agreement_doc for this endpoint.

  • tokenstringrequired

    Your API token from Log in. See Authentication.

  • company_idintegerrequired

    Your DCDial company ID.

    Example 101
  • agreement_idintegerrequired

    ID of the payment agreement.

    Example 5521
Terminal window
curl https://api.dcdial.com/api/ \
-d type=get_agreement_doc \
-d token="$DCDIAL_TOKEN" \
-d company_id=101 \
-d agreement_id=5521
Response · 200 OK
{
"response": {
"agreement_content": "[base64 encoded content]",
"message": "[response info]",
"ip_address": "[IP Address value]",
"success": "[1|0]"
}
}

Try it

Environment