Ir al contenido

tys.returns.create()

Esta página aún no está disponible en tu idioma.

Method@tryyoursize/node

create(ret: OutcomeReturnInput, options?: RequestOptions): Promise<OutcomeReturnResult>
retOutcomeReturnInputObligatorio
Propiedades
idstringObligatorio

Your return (or RMA) ID.

order_idstringObligatorio
line_idstringObligatorio
quantityintegerObligatorio
reasonstringOpcional

size_too_small, size_too_large, fit_other, style, quality, damaged_or_wrong, changed_mind, other; Shopify's ReturnReason codes (SIZE_TOO_SMALL…) and common returns-platform words are mapped. Empty: unspecified.

exchangebooleanOpcional

The item was exchanged rather than refunded.

exchange_sizestringOpcional

The size sent in exchange (implies exchange).

returned_atstringObligatorio
optionsRequestOptionsOpcional

Promise<OutcomeReturnResult>: What was recorded.

await tys.returns.create({
id: "RMA-7",
order_id: "1001",
line_id: "1",
quantity: 1,
reason: "size_too_small",
returned_at: new Date().toISOString(),
});

¿Te ha resultado útil esta página?