Skip to main content

Recharge Account

Description: To recharge an agency account, a HTTP POST request is made to the URL with the recharge type, amount, subscription type, credit card information and session token.

Method: POST

URI: /agency/recharge

Parameters:

  • recharge_type: Recharge credits or subscription, 1 = credits, 2 = subscription

  • amount: If recharge_type is credits, this is the amount of credits in dollars.

  • subscription_type: If recharge_type is subscriptopn, this is the type of subscription. "FM" = Property Management Subscription, "SA" = Sales Subscription, "ALL" = Unlimited Subscription.

  • card_name: The credit card name.

  • card_expiry_month: The month the credit card expires.

  • card_expiry_year: The last two digits of the year the credit card expires.

  • card_number: The credit card number

Headers: Authorization: Third party based authorization header

Returns:

FieldTypeDescription
MessageStringMessage relating to the update.

Example:

Request
curl https://app-api.reiformslive.com.au/agency/recharge \
--request POST \
--header "content-type: application/json" \
--header "Authorization: Basic YTlkOWIwYItNGY4Yi1hYTQxLTI5NzZmMTcyZmEyMQ==" \
--data '{
"recharge_type":"2",
"subscription_type":"ALL",
"card_name":"John Doe",
"card_expiry_month":"12",
"card_expiry_year":"12",
"card_number":"0000000000000000"
}'
Response
{
"message": "The transaction was successful."
}