Crew.Travel

Posting API Details

I hope the below explanation will clarify the functionality of the PostingAPI.

1. GetPosting API endpoint is called without any parameter and returns the issued and ticketed travel booking data that has been invoiced and acknowledged, since the last previous call to same endpoint. The response structure returned is of type InvoiceApiResponse. 
FYI this is a delta API

- What it means?



So if you are calling the API multiple time in a day, or any time frame, and there is no transaction in between, then API will not return any data.

2. GetPostingByDate API endpoint is called with a datetime parameter and returns the issued and ticketed travel booking data that has been invoiced and acknowledged, since the parameter date provided. The response structure returned is of type InvoiceApiResponse. 

- please see additional details:

For calling Posting API GetPosting method with a date or request id parameter, will have CURL command as per below.

curl --location --request POST "https://stagingapi.crew.travel/api/PostingApi/v1/GetPostingByDate" --header "Authorization: zzzzz-zzzzzz-zzzzzz-zzzzzz-zzzzzzz" --header "Content-Type:application/json" --data-raw "'15/Mar/2021'"

curl --location --request POST "https://stagingapi.crew.travel/api/PostingApi/v1/GetPostingByRequest" --header "Authorization: zzzzz-zzzzzz-zzzzzz-zzzzzz-zzzzzzz" --header "Content-Type:application/json" --data-raw "'123456'"

curl --location --request POST "https://stagingapi.crew.travel/api/PostingApi/v1/GetAccrualByDate" --header "Authorization: zzzzz-zzzzzz-zzzzzz-zzzzzz-zzzzzzz" --header "Content-Type:application/json" --data-raw "'15/Mar/2021'"


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article