Hello,
On Does B2BKing have a REST API? WP and WOO APIs - B2BKing it is mentioned that all the B2BKing information is available through the regular REST API.
I cannot find any B2BKing related endpoint in the REST API.
I have used the following PowerShell code to find all the endpoints:
Clear-Host
$ConsumerKey = "ck_blahblahblah"
$CustomerKey = "cs_somemoreblah"
$URL = "https://www.theurltomywebshop.nl"
$EndPoints = "/wp-json/wc/v3"
$EndPoints_URL = "$($url)$($Endpoints)"
$Headers = @{Authorization = "Basic {0}" -f [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $ConsumerKey, $CustomerKey))) }
$AllEndpoints = Invoke-RestMethod -Method GET -Uri "$($EndPoints_URL)" -Headers $Headers
$AllEndpoints.routes | Sort-Object
My question is: where is all the B2BKing related information stored in the REST API?
And I use PowerShell to query the REST API.
With kind regards,
Willem-Jan Vroom