Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Methods‎ > ‎1 - Offer Related‎ > ‎

Get Order By Id

Will get information about an order when looked up by id.

Method: GET /api/v3/publisher/order/{orderId}
Authentication: oauth

Required Parameters
  orderId - the id of the order to retrieve.

Returns
 base response fields
 order - The order object with the supplied order id.

Sample Request:

GET http://api.groupcommerce.com/api/v3/publisher/order/55867

Authorization: OAuth oauth_signature="DUvHJp3rcJnOYTNsl%2fSim3nPkg8%3d", oauth_nonce="873564", oauth_timestamp="1320660023", oauth_consumer_key="eeb6b959-b854-4ad1-b563-e801c83cf81d", oauth_signature_method="HMAC-SHA1", oauth_version="1.0"

Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1320422979814)/",
    "success": true,
    "version": "3",
    "order": {
            // see order
    }
}


Sample XML Response:

<getOrderByIdResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-11-04T16:12:37.5764725Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <order>
        <!--
see order -->
    </order>
</getOrderByIdResponse>
Comments