Happy Business Starts Here

New Student

difference in date between postusage API and createusage API

in the post usage, the start and end time is date field where as in create usage API, it is date timestamp. why is there this difference?

1 REPLY 1
Guru

Re: difference in date between postusage API and createusage API

Hi @nivedita, from what I can tell create usage was a SOAP feature and REST uses create usage and get usage.  Create Usage appears to be associated with a file upload via the API which explains the date timestamp.  Get Usage retrives it

 

I would guess based on what I read about them that create usage was replaced with two features when REST was created.

 

https://knowledgecenter.zuora.com/DC_Developers/G_SOAP_API/E1_SOAP_API_Object_Reference/Usage/Create...

 

https://knowledgecenter.zuora.com/DC_Developers/C_REST_API/B_REST_API_reference/Usage/1_POST_usage

 

https://knowledgecenter.zuora.com/DC_Developers/C_REST_API/B_REST_API_reference/Usage/2_GET_usage

 

Randi