Modifier un brouillon de devis
PATCH/v1/quotes/{quote}
lines, quand il est donné, remplace toutes les lignes. Les parts se réestiment.
Droit de clé restreinte : quotes:write.
Paramètres de chemin
quotetexteobligatoireL'identifiant,
qt_….
Corps de la requête
insurance_natureénumérationsicknessmaternitywork_accidentfree_medical_carethird_party_amobooléenthird_party_amcbooléencoveragetextepractice_situationtextecontextobjetChamps de context
maternity_datedatework_accident_datedatework_accident_numbertextecommon_law_accidentbooléencommon_law_accident_datedatecare_pathwayénumérationexcludedemergencytreating_doctornew_treating_doctorsubstituterecent_generalistunderserved_areaaway_from_homedirect_accessoutside_direct_accessreferred_by_treatingreferred_by_othernot_respectedtreating_doctor_declaredénumérationyesnounknownreferring_doctor_last_nametextereferring_doctor_first_nametextetreatment_seriesbooléensick_leave_daysentiersick_leave_end_datedate
complementaryobjetChamps de complementary
conventiontexteou nullcoverage_responseobjetChamps de coverage_response
referencetextelinestableau de objetChamps de lines
codetexteamount_centsentier
amount_centsentier
valid_untildateLe dernier jour où le patient peut accepter le devis. Par défaut, 90 jours après sa création.
linestableau de objetLes soins proposés, avec les champs d'une ligne de facture.
service_dateest la date prévue, celle du jour par défaut.Champs de lines
nomenclatureénumérationobligatoirengapccamlppbiologymedicationcodetexteobligatoireservice_datedatequantityentiercoefficientnombremodifierstableau de texteunit_price_centsentierou nullprescriberobjetChamps de prescriber
identifiertextekeytextespecialty_codetexteprescribed_ondateexercise_conditionénumérationliberalsalariedvolunteerrppstexterpps_keytextestructure_numbertexteoriginénumérationtreating_doctorcorrespondentother_pathwayoutside_pathwayadapted_renewalidentical_renewalsncf_doctorbooléen
execution_placeénumérationou nullpracticehomefacility_identifiertexteou nulldocumentary_extensiontexteou nullmandatory_child_exambooléenou nulltechnical_packageobjetChamps de technical_package
disciplinetextetreatment_modetextedevice_idtexteinstallation_datedatepowertextezonetexteexam_numbertexte
prior_agreementobjetL'entente préalable de l'acte : la réponse de la caisse, la date d'envoi de la demande, son identification.
Champs de prior_agreement
responseénumérationfavorable,no_answer(pas de réponse dans le délai réglementaire),emergency(urgence) ounot_required(acte non soumis).no_answerfavorableemergencynot_requiredsent_ondateidentifiertexte
En-têtes
Idempotency-KeytexteRend le rejeu de cette écriture sûr pendant 24 heures. Idempotence.
Réponse
Rend l’objet devis.
Une erreur suit le format commun.
curl
curl -X PATCH https://api.ophelix.fr/v1/quotes/qt_… \
-H "Authorization: Bearer sk_test_…" \
-H "Content-Type: application/json" \
-d '{"valid_until":"2027-03-01"}'{
"id": "obj_…",
"object": "quote",
"status": "draft",
"practitioner": "…",
"practice_situation": null,
"patient": "…",
"coverage": null,
"insurance_nature": "sickness",
"third_party_amo": true,
"third_party_amc": true,
"context": {},
"complementary": null,
"valid_until": "…",
"lines": [
{
"id": "obj_…",
"object": "quote_line",
"nomenclature": "ngap",
"code": "…",
"service_date": "…",
"quantity": 0,
"coefficient": "…",
"modifiers": [
"…"
],
"prescriber": null,
"details": {},
"unit_price_cents": 0,
"base_unit_cents": 0,
"amount_cents": 0,
"base_amount_cents": 0,
"amo_amount_cents": 0,
"amc_amount_cents": 0,
"reimbursement_rate": null,
"exemption_code": null,
"pricing_steps": [
{
"rule": "…",
"step": "…",
"value": {}
}
],
"livemode": false
}
],
"amount_cents": 0,
"base_amount_cents": 0,
"amo_amount_cents": 0,
"amc_amount_cents": 0,
"amc_pricing": null,
"patient_amount_cents": 0,
"referential_versions": null,
"claim": null,
"finalized_at": null,
"accepted_at": null,
"declined_at": null,
"expired_at": null,
"invoiced_at": null,
"canceled_at": null,
"livemode": false,
"created": 1793970000,
"updated": null
}