{"uid":"cap_S76K3-C7OBcu61zeJzFg5","slug":"delx-commerce-pad-left-string-7c6fdbd7","name":"Delx Commerce — Pad Left String","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/pad-left?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fill":{"type":"string","description":"Input field: fill."},"text":{"type":"string","description":"Input field: text."},"width":{"type":"integer","description":"Input field: width."}}},"responseSchema":{"type":"json","example":{"text":"00042","width":5,"schema":"delx/util-pad-left/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5KE_Z2bBm5MqIfUEnC0Fx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Pads a string on the left side with a specified fill character to a given total width","exampleAgentPrompt":"Pad the text '42' with zeros on the left so it's 5 characters wide.","exampleUseCases":[{"title":"Zero-pad invoice numbers for display","prompt":"I need to format invoice number '7' so it always shows as 5 digits with leading zeros — can you pad it on the left with zeros to width 5?"},{"title":"Align short codes in a report column","prompt":"I have a product code 'AB3' that needs to be exactly 8 characters wide with spaces on the left so the columns line up — can you pad it?"},{"title":"Format serial numbers with leading zeros","prompt":"Our serial numbers should always be 10 digits. The current value is '12345' — pad it on the left with zeros to make it 10 characters wide."}],"resultDescription":"Returns a JSON object containing the padded text string (with fill characters prepended to reach the specified width), the target width used, and a schema identifier ('delx/util-pad-left/v1') for verifiable result provenance.","failureModes":["Missing required fields (text, fill, width) returns an error","Width smaller than or equal to existing text length returns the text unchanged or an error","Non-integer width value causes a validation failure","Empty fill character may cause unexpected behavior","Network or payment failure via x402 protocol returns a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a simple, reliable, pay-per-call string left-padding operation without signup or subscription overhead. It is ideal for agent workflows that occasionally need to format strings (e.g. zero-padded IDs, fixed-width codes) and want verifiable, deterministic results billed per use in USDC. Prefer this over implementing padding logic in the agent itself when you want a standardized, schema-versioned output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:01:52.355Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pad-left-string-7c6fdbd7"}