DSM (self-service online purchase system)
Purchase listing
A purchase listing is obtained
URL: /admin/adnet/pub/admin/compras.html?op=l&o=xml
Optional parameters:
fecha_inicio y fecha_fin: it will display the purchases created within that time range.
pago_fecha_inicio y pago_fecha_fin: it will display only the purchases which payments were effectively registered within that time range.
Only one time range can be indicated, not both. The dates must be indicated as in the format selected in the user interface (DD/MM/YYYY HH:MM:SS o MM/DD/YYYY HH:MM:SS)
Response:
It contains a list of object <compra>. The identifier is specified through compra_id attribute. Up to version 4.3, the purchases could only be performed by advertisers’ users. From version 4.3 on, the agencies can purchase campaigns aswell, so the user can belong to an agency. The data presented are the following:
moneda_id: purchase currency – See potential values in Currency annex
importe: total amount of the purchase
fecha_alta: creation date
estado: See annex Purchase status
usuario_id: user ID of the advertiser who made the purchase
anunciante_id: if the the purchase was performed by an advertiser, this will be the advertiser’s identifier.
agencia_id: if the the purchase was performed by an agency, this will be the agency’s identifier.
Response example:
<lista> |