# MD for: https://www.mercadopago.com.br/developers/en/docs/checkout-pro-orders/additional-settings/define-order-validity.md \# Define order validity Validity is the period defined for an order to remain active. By configuring it, you can set an effective start date and an expiration date that defines the maximum deadline to complete the payment. To configure the validity, include the \`config.online.available\_from\` and \`expiration\_time\` parameters when sending the request to the :TagComponent{tag="API" text="Create order" href="/developers/en/reference/online-payments/checkout-pro/create-order/post"} endpoint: - In \`config.online.available\_from\`, enter the effective start date and time in ISO 8601 format (\`yyyy-MM-dd'T'HH:mm:ssZ\`). For example: \`"2026-01-15T12:00:00.000-04:00"\`. - In \`expiration\_time\`, enter the expiration time from the order creation in ISO 8601 format. For example: \`"P1D"\` equals 1 day. \`\`\`curl curl -X POST \\ -H 'accept: application/json' \\ -H 'Content-Type: application/json' \\ -H 'Authorization: Bearer ENV\_ACCESS\_TOKEN' \\ -H 'X-Idempotency-Key: UNIQUE\_KEY' \\ 'https://api.mercadopago.com/v1/orders' \\ -d '{ "type": "online", "processing\_mode": "manual", "total\_amount": "1000.00", "external\_reference": "order\_pro\_123", "expiration\_time": "P1D", "payer": { "email": "buyer@email.com" }, "items": \[ { "title": "My product", "unit\_price": "1000.00", "quantity": 1, "unit\_measure": "unit", "total\_amount": "1000.00" } \], "config": { "online": { "available\_from": "2026-01-15T12:00:00.000-04:00" } } }' \`\`\`