Documentation on authentication WooCommerce REST API requests can be found here. The credentials used for authentication can be found in the WooCommerce > Settings > Advanced > REST API page of the main GoodBids site admin (or in 1Pass).
Used to generate WooCommerce API credentials for a Nonprofit site. If credentials already exist, they will be revoked and new credentials will be created. This endpoint is only available on the Main GoodBids site.
Parameter | Type | Description |
---|---|---|
domain | string | The domain of the nonprofit site. |
The response will contain the WooCommerce API credentials that can be used for the given site.
{
"key": "ck_XXXXX",
"secret": "cs_XXXXX"
}
Retrieves the Auction details for the given Auction ID.
None.
The response will contain the details shown below.
{
"auctionStatus": "string",
"socketUrl": "string",
"bidUrl": "string",
"accountUrl": "string",
"startTime": "string",
"endTime": "string",
"totalBids": "number",
"totalRaised": "float",
"currentBid": "float",
"lastBid": "number"
}
Retrieves the User-related details for the given Auction ID.
Parameter | Type | Description |
---|---|---|
cookie | string | The Session Cookie for the desired user. |
The response will contain the details shown below.
{
"isLastBidder": "bool",
"rewardClaimed": "bool",
"rewardUrl": "string",
"userFreeBids": "number",
"userTotalBids": "number",
"userTotalDonated": "number"
}