Retour à l'API
/pos/product POST
À propos Support Tableau de bord

Ajoute ou met à jour un produit TPV

Paramètres

Aucun paramètre requis.

Corps de la requête

{
    "type": "object",
    "properties": {
        "name": {
            "type": "string"
        },
        "price": {
            "type": "number"
        },
        "category": {
            "type": "string"
        }
    }
}

Réponses

200 OK
req est une HTTPRequête
req.Méthode = httpPost
req.URL = "http://127.0.0.1:8082/pos/product"
req.Entête["Authorization"] = "Bearer sk_test_..."
req.Entête["Content-Type"] = "application/json"
req.Contenu = '{"name":"string","price":0,"category":"string"}'
res est une HTTPRéponse = HTTPEnvoie(req)
SI ErreurDétectée ALORS
   Erreur(ErreurInfo())
SINON
   Trace(res.Contenu)
FIN