{"uid":"cap_JSaxFeyOcV8iBnjcu5NdN","slug":"delx-commerce-pad-right-string-utility-4fe53212","name":"Delx Commerce — Pad Right String Utility","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-right?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":"42   ","width":5,"schema":"delx/util-pad-right/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_T5_LOT_XCeMKqVibZDxqF","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 right with a specified fill character to reach a target width","exampleAgentPrompt":"Right-pad the text '42' with spaces so it's exactly 5 characters wide.","exampleUseCases":[{"title":"Fixed-width column formatting","prompt":"I'm building a report table and need to right-pad each label with spaces so every cell is exactly 20 characters wide — start with the label 'Revenue' and use spaces as the fill."},{"title":"Align numeric codes in output","prompt":"Can you pad the string 'SKU-7' on the right with dashes so it's 12 characters long? I need all my SKU codes to be the same length for display."},{"title":"Standardize short identifiers","prompt":"I have the short code 'AB' and I need it padded on the right with underscores until it's 8 characters wide so it matches the rest of my ID format."}],"resultDescription":"Returns a JSON object containing the padded text string, the target width used, and a schema identifier ('delx/util-pad-right/v1'). The text field contains the original input right-padded with the fill character to reach the specified width.","failureModes":["Missing required fields (text or width) return an error response","Non-integer width value causes validation failure","Payment failure via x402 protocol prevents execution","Width smaller than the input string length may return the string unchanged or produce an error","Invalid fill character type may cause a processing error"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use right-padding operation without setting up any infrastructure or SDK. Ideal for agents that occasionally need to format strings to a fixed width inside automated pipelines, report generation, or data normalization tasks, and want verifiable, micro-priced execution via USDC on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:54.422Z","isFirstParty":false,"canonicalSlug":"delx-commerce-pad-right-string-utility-4fe53212"}