API endpoints

API endpoints

Base URL is https://midlayer.woosa.nl (or the -dev variant for testing). Every path below is signed except Register.
For full technical details on every field and parameter, see the API doc at  wiki.woosashop.nl/rest-api-docs/woosa-payments .

Setup and account

Do this
Method + path
Register your shop (unsigned)
POST /woocommerce/shops
Send an email verification code
POST /email-verification-messages
Connect the account
PUT /woocommerce/adyen/backoffice-user
List contractors
GET /woocommerce/adyen/backoffice-user-contractors
Set current contractor (required)
PUT /woocommerce/adyen/contractor
List reference: industry codes
GET /woocommerce/adyen/industry-codes
List reference: countries
GET /woocommerce/adyen/countries

Stores and onboarding

Do this
Method + path
List stores
GET /woocommerce/adyen/stores
Create a store
POST /woocommerce/adyen/stores
Check onboarding status
GET /woocommerce/adyen/onboarding-status
Create an onboarding link
POST /woocommerce/adyen/onboarding-links

Payment methods

Do this
Method + path
See available methods
GET /woocommerce/adyen/stores/{store_id}/checkout-payment-methods
Enable/disable methods
PUT /woocommerce/adyen/stores/{store_id}/payment-methods

Payments

Do this
Method + path
Create a payment
POST /woocommerce/adyen/stores/{store_id}/payments
Finish an extra shopper step
POST /woocommerce/adyen/stores/{store_id}/payment-details
Capture
POST /woocommerce/adyen/payments/{psp_reference}/captures
Refund
POST /woocommerce/adyen/payments/{psp_reference}/refunds
Cancel
POST /woocommerce/adyen/payments/{psp_reference}/cancels
Poll for status changes
GET /woocommerce/adyen/updated-payments
Remove a saved method
POST /woocommerce/adyen/stores/{store_id}/unsubscribe-requests
GDPR erasure
POST /woocommerce/adyen/payments/{psp_reference}/subject-erasure-requests

Endpoints your shop must expose (non-WooCommerce only)

Woosa calls this on your shop
Method + path
Read settings (Basic Auth)
GET /wp-json/wc/v3/settings/general
Save settings (Basic Auth)
POST /wp-json/wc/v3/settings/general/batch
Onboarding return (no auth)
GET /wp-json/woosa-payments/onboarding-redirect