ADD BuyerCredit API Version 1

ADD BuyerCredit API Version 1

Modified on: Mon, 18 Jan, 2021 at 9:57 AM

Summary

This API allows you to add credit for a specific Buyer.

Note This API adds a prepay amount. Regular credit is handled through the ADDEDIT Buyer API.

Current Version: Version 1

Deprecated Versions: N/A

Requests Allowed: GET & SOAP

Resource / WSDL Page

http://<your_domain_here>/api/1/add.asmx?op=BuyerCredit

Parameters

All parameters are required in every API call. Parameters not being used should be passed as a null value.

ParameterRequiredTypeDescription
api_keyRequiredSTRINGValid API key (not expired). Max 50 chars. Obtained from CAKE >> Setup >> Permissions >> API Key list.
Example: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh
buyer_idRequiredINTEGERUnique Buyer ID. Obtained via Export Buyers API.
Example: 530
credit_typeRequiredENUMERATIONSpecifies the credit type to apply:
  • limited — Apply a limited amount. Enter the amount in credit_to_add.
  • unlimited — Apply unlimited credit.
  • no_change — Make no change to current credit.
credit_to_addRequiredSTRINGCredit amount to add. Used when credit_type is set to limited.
Example: 500, 50

Example Request

GET https://demo-new.cakemarketing.com/api/1/add.asmx/BuyerCredit
  ?api_key=3YmDJeT3VHTFhDqAjr2OlQ
  &buyer_id=1326
  &credit_type=limited
  &credit_to_add=23000

Sample XML Response

<buyer_credit_add_response>
  <success>true</success>
  <message>Buyer Credit Updated Successfully</message>
</buyer_credit_add_response>

Error Messages

Error MessageLikely Cause
Invalid API KeyAPI key does not exist or is expired.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.