{"uid":"cap_GWyjtBbJvhjsQ2TIg-h83","slug":"delx-commerce-string-pad-api-dd96b4d1","name":"Delx Commerce String Pad API","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/string-pad?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fill":{"type":"string","description":"Input field: fill."},"side":{"type":"string","description":"Input field: side."},"text":{"type":"string","description":"Input field: text."},"width":{"type":"integer","description":"Input field: width."}}},"responseSchema":{"type":"json","example":{"fill":"0","side":"left","text":"00042","width":5,"schema":"delx/util-string-pad/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_qshAuZwhjvGDswmHuy1IP","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 to a fixed width by filling with a specified character on a given side (left or right)","exampleAgentPrompt":"Left-pad the number 42 with zeros so it's exactly 5 characters wide.","exampleUseCases":[{"title":"Zero-pad order IDs for display","prompt":"I need to format order number 317 as a 6-digit zero-padded string like 000317 — can you left-pad it with zeros to width 6?"},{"title":"Right-align labels in fixed-width report","prompt":"Right-pad the label 'SKU' with spaces so it fills exactly 10 characters wide, so all my report columns line up."},{"title":"Normalize product codes to fixed length","prompt":"I have a product code 'A7' and I need it padded with dashes on the right side to reach a total width of 8 characters — can you format it for me?"}],"resultDescription":"Returns a JSON object containing the padded string (text field showing the result), along with the original parameters (fill character, side, width) and a schema identifier (delx/util-string-pad/v1) for verification.","failureModes":["Missing required fields (text or width) return a validation error","Invalid side value (not 'left' or 'right') may cause a bad request","Width smaller than the input text length may return the original string unmodified","Payment failure via x402 protocol blocks the request","Non-integer width value causes schema validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to format strings or numbers to a fixed width (e.g. zero-padded IDs, aligned columns, fixed-length codes) without deploying custom code. Ideal for agentic pipelines that need verifiable, pay-per-use string utilities via x402/USDC with no signup or API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.417Z","isFirstParty":false,"canonicalSlug":"delx-commerce-string-pad-api-dd96b4d1"}