{"components":{"securitySchemes":{"bearer":{"scheme":"bearer","type":"http"}}},"info":{"description":"e-CMR, krajowe listy przewozowe i dokumenty przejazdu. Klucz: Authorization: Bearer cmr_...","title":"cmrpro.pl API","version":"1.0"},"openapi":"3.0.3","paths":{"/documents":{"get":{"summary":"Lista dokument\u00f3w (status, type, updated_since, limit, offset)"},"post":{"requestBody":{"content":{"application/json":{"example":{"driver_id":12,"emails":{"consignee":"odbior@odbiorca.de","sender":"wysylki@nadawca.pl"},"fields":{"consignee":"Muster GmbH\nHamburg","delivery_place":"Hamburg, DE","goods":"Mleko w proszku","gross_kg":"24000","loading_place":"Zambr\u00f3w, PL","packages":"33","sender":"Nadawca Sp. z o.o.\nul. A 1, Zambr\u00f3w"},"issue":true,"type":"international"}}}},"summary":"Utw\u00f3rz dokument ze zlecenia (Idempotency-Key)"}},"/documents/{ref}":{"get":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"Dokument z polami, podpisami i linkiem weryfikacji"}},"/documents/{ref}/cancel":{"post":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"Anuluj ({reason}) \u2014 numer zostaje"}},"/documents/{ref}/docx":{"get":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"Word"}},"/documents/{ref}/ecmr.json":{"get":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"Dane w modelu UN/CEFACT eCMR"}},"/documents/{ref}/issue":{"post":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"Wystaw (nadaje numer)"}},"/documents/{ref}/pdf":{"get":{"parameters":[{"description":"id albo numer dokumentu","in":"path","name":"ref","required":true,"schema":{"type":"string"}}],"summary":"PDF (orygina\u0142 z sum\u0105 kontroln\u0105 po podpisie)"}},"/drivers":{"get":{"summary":"Kierowcy"}},"/templates":{"get":{"summary":"Szablony tras i kontrahent\u00f3w"}}},"security":[{"bearer":[]}],"servers":[{"url":"https://app.cmrpro.pl/api/v1"}],"x-fields":["adr","arrival_time","cod","consignee","delivery_place","departure_time","documents","freight","goods","gross_kg","issued_place","loading_date","loading_place","marks","packages","packing","paper_number","plates","receipt_place","reservations","sender","sender_instructions","special","stat_no","successive_carriers","to_pay","volume_m3"],"x-webhook-events":["document.created","document.issued","document.signed","document.refused","document.delivered","document.cancelled","document.arrival"],"x-webhook-signature":"X-CMRPRO-Signature: t=<unix>,v1=hex(HMAC-SHA256(secret, f'{t}.{body}'))"}
