Après appel à la méthode POST /payments de L’API Payment, cette dernière retourne au marchand une réponse pouvant être : un succès ou un échec.

Succès : l’API Payment retourne l’url du formulaire sur lequel rediriger le client

HTTP 200
{
"url": "https://secure-payment.sandbox.oyst.eu?m=..."
}

Echec : l’API Payment retourne l’url error_url

HTTP 400 : Invalid payload (le format json n’est pas correct)
HTTP 403 : Unauthorized (vérifier la merchant api key avec le support Oyst)