Does anyone know how you can link a payment transa...
# suitetalkapi
m
Does anyone know how you can link a payment transaction to an invoice transaction using the API? These records don’t seem to have references to each other in the data but clearly in the UI the payment record has a reference to the invoice that it relates to?
b
soap or rest
m
Either? I’ve been using SuiteQL via Rest but have used SOAP too
b
for soap, you want to initialize the Customer Payment so that all the available invoices are filled in for you
for rest, you do the same thing while transforming records, though its more important that you find out which field is the key when Working with Sublists
my guess for the customer payment will be the refNum or doc fields
m
I don’t see anything on the transaction schema (used for payments and invoices) that I could use
Is there another data model I’m missing
b
primary source should be Working with Resource Metadata
secondary source the REST API Browser. Beware differences between it and the metadata in your account