About SetCustomerAuthorization
This API grants permission for the organization to directly charge a customer before ChargeCustomer API is called.
Example
Request
<API_URL_EndPoint>/SetCustomerAuthorization.json
data={
"customerId" : "0cu01OVCSLTRSAWLh162",
"hasAuthorizedToCharge" : true
}
Response
{
"response_status" : 0,
"response_message" : "Success",
"response_data" : {
"entity" : "Customer",
"id" : "0cu01OVCSLTRSAWLh162",
"isActive" : "1",
"createdTime" : "2014-05-07T22:34:46.000+0000",
"updatedTime" : "2014-05-15T21:42:38.000+0000",
"name" : "3M",
"shortName" : null,
"parentCustomerId" : "00000000000000000000",
"companyName" : "TEST COMPANY",
"contactFirstName" : null,
"contactLastName" : null,
"accNumber" : null,
"billAddress1" : "3200 Ash Street",
"billAddress2" : null,
"billAddress3" : null,
"billAddress4" : null,
"billAddressCity" : "Palo Alto",
"billAddressState" : "CA",
"billAddressCountry" : "United States",
"billAddressZip" : "94306",
"shipAddress1" : null,
"shipAddress2" : null,
"shipAddress3" : null,
"shipAddress4" : null,
"shipAddressCity" : null,
"shipAddressState" : null,
"shipAddressCountry" : "USA",
"shipAddressZip" : null,
"email" : "3m@3m.com",
"phone" : "526 8426 1095",
"altPhone" : null,
"fax" : null,
"description" : null,
"printAs" : null,
"mergedIntoId" : "00000000000000000000",
"hasAuthorizedToCharge" : true
}
}
Resources
Parameters
Field Name | Description | Required? |
---|---|---|
customerId | The system generated customer ID that is unique to a customer. | Yes |
hasAuthorizedToCharge | The argument which determines if the customer can be charged directly. If the value is set to true, the customer can be charged directly. | Yes |