POST /api/enabavki/plans
Price: 20 credits
North Macedonia annual public procurement plan from e-nabavki.gov.mk by id: the buyer with contacts, plan versions, and every planned procurement with subject, contract type, procedure, estimated value, expected start and CPV codes, in the plan's current version. On the largest plans (over 1,000 planned procurements) the list can come back short: `item_count` still gives the plan's full count and an X-Warning header states how many were returned.
Takes the `id` of an enabavki/plans/search row; `planned_procurements` are the planned procurements of the current version.
access-token string requiredtimeout integer — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)id string required — Annual plan id from enabavki/plans/search (examples: "3d55ce7d-e2e5-4334-9fa9-b3d9012ad456"; pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)@type string (default: "EnabavkiPlan")id string requiredentity_id string nullableyear integer nullablebuyer_name string nullablebuyer object nullable@type string (default: "EnabavkiBuyer")name string nullableaddress string nullablecity string nullablepostal_code string nullablecategory string nullablemain_activity string nullableemail string nullablephone string nullablewebsite string nullablecontact_person string nullablecontact_phone string nullablecontact_email string nullablecontact_fax string nullablecontact_page string nullableauthorized_person string nullableauthorized_person_email string nullableauthorized_person_phone string nullablestatus string nullablestatus_type_id string nullableplan_stage string nullablecurrent_version integer nullablecreated_date string nullablepublished_date string nullablehas_items boolean nullablecovers_all_procurements boolean nullableis_editable_after_publication boolean nullablehas_version_request boolean nullableversions array (default: [])@type string (default: "EnabavkiPlanVersion")number integer nullablename string nullablepublished_at integer nullableitem_count integer nullableplanned_procurements array (default: [])@type string (default: "EnabavkiPlanItem")id string nullablesubject string nullablecontract_type string nullablecontract_type_id string nullableprocedure_type string nullableprocedure_type_id string nullableestimated_value number nullableexpected_start_at integer nullableexpected_month integer nullablenote string nullablecpvs array (default: [])@type string (default: "EnabavkiPlanCpv")code string nullabledescription string nullablecode_id string nullablecode_type string nullablenomenclature_type string nullableprocedures array (default: [])@type string (default: "EnabavkiPlanProcedure")id string nullableprocedure_type_id string nullablerecord_type_id string nullableplan_stage string nullablecan_be_announced integer nullablepublished_at integer nullablecreated_at integer nullableinitial_version_id string nullablehas_previous_version boolean nullableis_central_institution boolean nullableis_from_spreadsheet boolean nullableis_on_emarket boolean nullable422 — The id is not a GUID Check the fields against this schema. A URN with the wrong prefix is the most common cause.408 — The request ran past its time limit Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.412 — No annual plan with that id Retrying will not help: either the entity does not exist, or the input points at a different one.429 — Too many requests: a rate limit or a usage window is exhausted When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.500 — Something broke on our side Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.529 — Rate limit reached, or the endpoint is overloaded Wait at least 30 seconds, then retry.X-Error — Error message text (present only on error)X-Request-ID — Unique request identifierX-Execution-Time — Execution time in secondsX-Result-Count — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.X-Total-Available-Results — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.X-Warning — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.X-Retry-After — Seconds to wait before retrying. Present only on 429.